A ScrollBox is a scrollable container which allows you to scroll the content within horizontally and vertically.
A ScrollBox can contain any widget except a Tab pane. It can contain any number of widgets within it.
Note: In Desktop Web platform, ScrollBox is displayed in browser native mode.
You can add the ScrollBox Widget only to the VBox form. This widget will be available in the Widgets palette when the VBox form is selected in the app canvas.
ScrollBox provides you with an option to set Basic Properties, Layout Properties, Platform Specific Properties, an Event, and Methods.
var scrollbox1 = new kony.ui.ScrollBox(basicConf, layoutConf, pspConf)
Note: The configuration properties should be passed only in the respective configuration objects otherwise they are ignored.
//Defining properties for a ScrollBox. var scrollBasic = {id :"scrollBox",skin:"scrlSkin", isVisible:true, orientation:constants.BOX_LAYOUT_HORIZONTAL, position:constants.BOX_POSITION_AS_FOOTER, scrollDirection:constants.SCROLLBOX_SCROLL_VERTICAL}; var scrollLayout = {padding:[2,2,2,2], containerWeight:100, margin:[5,5,5,5], containerHeight:100, percent:true}; var scrollPSP = {scrollArrowConfig:["leftArrow.png", "topArrow.png", "rightArrow.png", "bottomArrow.png"]}; //Creating the ScrollBox. var scrollBox = new kony.ui.ScrollBox(scrollBasic, scrollLayout, scrollPSP);
The steps involved in adding a ScrollBox widget are:
You can customize the appearance of the ScrollBox using the following properties:
The following are the important considerations of a ScrollBox:
prem | Copyright © 2012 Kony, Inc. All rights reserved. |
prem | Copyright © 2012 Kony, Inc. All rights reserved. |