dojox.mobile.ScrollableView

Status:Draft
Version:1.0
Authors:Yoshiroh Kamiyama
Developers:Yoshiroh Kamiyama
Available:since V1.6

ScrollableView is a container widget that represents entire mobile device screen, and has a touch scrolling capability. ScrollableView is a subclass of View (=dojox.mobile.View). Unlike the base View class, ScrollableView’s domNode always stays at the top of the screen and its height is “100%” of the screen. Inside this fixed domNode, containerNode scrolls. Browser’s default scrolling behavior is disabled, and the scrolling machinery is re-implemented with JavaScript. Thus the user does not need to use the two-finger operation to scroll an inner DIV (containerNode). The main purpose of this widget is to realize fixed-positioned header and/or footer bars.

The animation below shows the difference of scrolling behavior between View and ScrollableView.

../../_images/ScrollableView-anim.gif

Constructor Parameters

Inherited from dojox.mobile.View:

Parameter Type Required Description
selected Boolean No If true, the view is displayed at startup time. The default value is false.
keepScrollPos Boolean No If true, the scroll position is kept when transition occurs between views. The default value is true.

Inherited from dojox.mobile.scrollable:

Parameter Type Required Description
scrollBar Boolean No If true, scroll bar is displayed. The default value is true.
scrollDir String No Specify a scrolling direction. “v” for vertical, “h” for horizontal, or “vh” for both. The default value is “v”.
fadeScrollBar Boolean No Use the fade animation to hide scroll bar. The default value is true.
disableFlashScrollBar Boolean No Disable flashing of scroll bar when a view is shown. The default value is false.

Usage

Basic usage is the same as for dojox.mobile.View. If you do not need fixed-positioned header and/or footer bars, you should use dojox.mobile.View.

Examples

Error in the documentation? Can’t find what you are looking for? Let us know!