The BottomSheet widget contains the following properties:
Indicates to users that the UI control is currently restricted for a BottomSheet until it is dismissed, i.e., dragged down completely.
Syntax
backgroundTransparency
Example
var mBottomSheetObject = new kony.ui.BottomSheet({ "contentWidget": FlexScrollTemplate /*This is a template*/ , "peekHeight": constants.BOTTOM_SHEET_PEEK_HEIGHT_AUTO, "skipCollapsed": false, "onCollapsed": onCollapsedEmptycallback, "onExpanded": onExpandCallback, "onDraggingStarted": onDraggingCallback, "onSettled": onSettlingCallback, "onDismiss": onDismissCallback, "onSliding": onSlideCallback, "onShow": onShowCallback, "backgroundTransparency": 40, });
Platform Availability
Sets the template of a BottomSheet.
For creating the template, follow these steps:
You must set the contentWidget property to a valid widget template.
Syntax
contentWidget
Example
var mBottomSheetObject = new kony.ui.BottomSheet({ "contentWidget": FlexScrollContainer0cf099f76793441 /*This is a template*/ , "peekHeight": constants.BOTTOM_SHEET_PEEK_HEIGHT_AUTO, "skipCollapsed": false, "onCollapsed": onCollapsedEmptycallback, "onExpanded": onExpandCallback, "onDraggingStarted": onDraggingCallback, "onSettled": onSettlingCallback, "onDismiss": onDismissCallback, "onSliding": onSlideCallback, "onShow": onShowCallback, "backgroundTransparency": 40, });
Platform Availability
The height at which a collapsed BottomSheet docks.
Syntax
peekHeight
Constants
Example
//Sample code to set peekHeight property to a BottomSheet widget.
frmBottomSheet.myBottomSheet.peekHeight = constants.BOTTOM_SHEET_PEEK_HEIGHT_AUTO;
Platform Availability
If this property is set to true, a BottomSheet directly goes from an Expanded state to a Dismissed one. The BottomSheet, however, does not reach the Collapsed state.
Syntax
skipCollapsed
Example
var mBottomSheetObject = new kony.ui.BottomSheet({ "contentWidget": FlexScrollContainer0cf099f76793441 /*This is a template*/ , "peekHeight": constants.BOTTOM_SHEET_PEEK_HEIGHT_AUTO, "skipCollapsed": false, "onCollapsed": onCollapsedEmptycallback, "onExpanded": onExpandCallback, "onDraggingStarted": onDraggingCallback, "onSettled": onSettlingCallback, "onDismiss": onDismissCallback, "onSliding": onSlideCallback, "onShow": onShowCallback, "backgroundTransparency": 40, });
Platform Availability
prem | Copyright © 2012 Kony, Inc. All rights reserved. |
prem | Copyright © 2012 Kony, Inc. All rights reserved. |