BottomSheet Methods
The namespace for the BottomSheet widget is mBottomSheetObject. It contains the following methods:
destroy Method
Ensures that the garbage collection process of a BottomSheet occurs, and the data of the BottomSheet is wiped out. So, the next time a BottomSheet is displayed, a new instance of the BottomSheet is created.
Syntax
destroy()
Example
var mBottomSheetObject = new voltmx.ui.BottomSheet({});
//Destroying a widget using destroy method.
testForm.mBottomSheetObject.destroy();
Platform Availability
- Android
dismiss Method
Dismisses a BottomSheet widget for users.
Syntax
dismiss()
Example
var mBottomSheetObject= new voltmx.ui.BottomSheet({});
//Dismissing a widget using dismiss method.
testForm.mBottomSheetObject.dismiss();
Platform Availability
- Android
show Method
Displays a BottomSheet widget for users.
Syntax
show()
Example
var mBottomSheetObject = new voltmx.ui.BottomSheet({});
//Showing a widget using show method.
testForm.mBottomSheetObject.show();
Platform Availability
- Android
setState Method
Sets the state of a BottomSheet widget as Expanded or Collapsed.
Syntax
setState()
Constants
- BOTTOM_SHEET_STATE_EXPANDED
- BOTTOM_SHEET_STATE_COLLAPSED
Example
var mBottomSheetObject = new voltmx.ui.BottomSheet({});
//Collapsing a bottomSheet widget using setState method.
mBottomSheetObject.setState(constants.BOTTOM_SHEET_STATE_COLLAPSED);
Platform Availability
- Android