Ionic Scroll
Ionic Scroll : This is used to create scrollable container for content.
Ionic Scroll
Here is simple example of ionic scroll โ
Ionic Scroll:
<ion-scroll zooming="true" direction="xy"> <ul class="list"> <li class="item item-checkbox"> Item 1 <label class="checkbox"> <input type="checkbox"> </label> </li> <li class="item item-checkbox"> Item 2 <label class="checkbox"> <input type="checkbox" checked="Checked"> </label> </li> <li class="item item-checkbox"> Item 3 <label class="checkbox"> <input type="checkbox"> </label> </li> <li class="item item-checkbox"> Item 4 <label class="checkbox"> <input type="checkbox" checked="Checked"> </label> </li> <li class="item item-checkbox"> Item 5 <label class="checkbox"> <input type="checkbox"> </label> </li> <li class="item item-checkbox"> Item 6 <label class="checkbox"> <input type="checkbox" checked="Checked"> </label> </li> <li class="item item-checkbox"> Item 7 <label class="checkbox"> <input type="checkbox"> </label> </li> <li class="item item-checkbox"> Item 8 <label class="checkbox"> <input type="checkbox" checked="Checked"> </label> </li> <li class="item item-checkbox"> Item 8 <label class="checkbox"> <input type="checkbox"> </label> </li> <li class="item item-checkbox"> Item 9 <label class="checkbox"> <input type="checkbox" checked="Checked"> </label> </li> </ul> </ion-scroll> |
The above example will produce the output something like this โ
API
delegate-handle [optional(string)]โ Used to identify this scrollView with $ionicScrollDelegate.
direction [optional(string)]โ Direction of scroll. โxโ or โyโ or โxyโ. Default is โyโ.
locking [optional(boolean)] โ Used to lock screen in one direction. This is useful to set to false when zoomed in or scrolling in two directions. Default value is set true.
paging [optional(boolean)]โ If you want to scroll with paging.
on-refresh [optional(expression)]โ Called when pull-to-refresh.
on-scroll [optional(expression)]โ Called when user scrolls.
scrollbar-x [optional(boolean)]โ Used to show the horizontal scrollbar. Default value is true.
scrollbar-y [optional(boolean)]โ Used to show the vertical scrollbar. Default value true.
zooming [optional(boolean)]โ Used to support pinch-to-zoom
min-zoom [optional(integer)]โ Used to set the smallest zoom allowed. The default value is 0.5.
max-zoom [optional(integer)]โ Used to set the largest zoom allowed. The default value is 3.
has-bouncing [optional(integer)]โ Used to allow scrolling to bounce past the edges of the content. This is set true in ios and false in android.
Advertisements