VScroll module is introduces vertical scroller when content exceeds the current viewing area. It can be useful for the components like Toolbar, Tab which needs vertical scrolling alone. Hidden content can be view by touch moving or icon click.
<div id="scroll"/>
<script>
var scrollObj = new VScroll();
scrollObj.appendTo("#scroll");
</script>
boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ”
number
Specifies the up or down scrolling distance of the vertical scrollbar moving.
Defaults to null
Adds the handler to the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event |
handler | Function |
Specifies the call to run when the event occurs. |
Returns void
Appends the control within the given HTML element
Parameter | Type | Description |
---|---|---|
selector (optional) | string | HTMLElement |
Target element where control needs to be appended |
Returns void
When invoked, applies the pending property changes immediately to the component.
Returns void
Removes the control from the DOM and also removes all its related events.
Returns void
Specifies the value to disable/enable the VScroll component.
When set to true
, the component will be disabled.
Parameter | Type | Description |
---|---|---|
value | boolean |
Based on this Boolean value, VScroll will be enabled (false) or disabled (true). |
Returns void
Returns the persistence data for component
Returns any
Returns the route element of the component
Returns HTMLElement
Applies all the pending property changes and render the component again.
Returns void
Removes the handler from the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event to remove |
handler | Function |
Specifies the function to remove |
Returns void
Dynamically injects the required modules to the component.
Parameter | Type | Description |
---|---|---|
moduleList | Function[] |
? |
Returns void