public class WScroll extends Object
Modifier and Type | Field and Description |
---|---|
DOMElement |
control
The control object for this scrolling that user can scroll the whole content
|
Map |
opts
The opts of this scrollbar controls.
|
Widget |
widget
The widget object that owns the control object.
|
Modifier and Type | Method and Description |
---|---|
static void |
easing()
Sets the easing animation function for the scrolling effects.
|
void |
syncSize(Map opts)
Syncs the scrolling area and control bar size.
|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public DOMElement control
public Widget widget
public Map opts
Specifies the start position according to the scrolling area, like offset top for the vertical scrolling and offset left for the horizental scrolling.
Specifies the start step for the scrolling.
Note: it cannot be negative.
Specifies how many steps for the scrolling.
Note: it cannot be negative.
Specifies how many steps will show in the viewport.
Note: it cannot be negative.
Specifies how many pixels for the viewport size, like offsetHeight for vertical scrolling and offsetWidth for horizental scrolling.
Note: it cannot be negative.
Specifies either 'vertical' or 'horizontal' to indicate that it can be scrolled only in the vertical or horizontal direction.
Default: 'horizontal'
Specifies the anchor that indicates the scrollbar will be its child node.
Default: the parent node of the control.
Specifies whether to sync the scrolling area size at initial phase.
Default: true.
void onScrollY(int step);
Specifies the callback function for the vertical scrolling, when user changes the vertical scrolling step.
void onScrollX(int step);
Specifies the callback function for the horizental scrolling, when user changes the horizental scrolling step.
Specifies the offset for the scrolling step to shift when the callback functions (onScrollX and onScrollY) are invoked. For example, if the offset is 2, then the steps in the onScrollX/Y event will start at 2.
Default: 0
public void syncSize(Map opts)
opts
- the opts can override the initail opts data for resizing.public static void easing()
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.