BottomSheet Properties
The BottomSheet widget contains the following properties:
backgroundTransparency Property
Indicates to users that the UI control is currently restricted for a BottomSheet until it is dismissed, i.e., dragged down completely.
Syntax
Example
Platform Availability
- Android
contentWidget Property
Sets the template of a BottomSheet.
For creating the template, follow these steps:
- Select the Templates tab in the Iris IDE.
- Under the Templates tab, select the Mobile/Tablet platform drop down.
- Under the chosen platform, right-click on Segment and select New Template.
A new template is created along with a default flexContainer.
Note the default flexContainer’s widget ID/name. - Dynamically create a flexScrollContainer. Add the default flexContainer created along with the template to this flexScrollContainer.
For example: flexScrollContainerID.add(flexConatinerID) - You can now assign the flexScrollContainer’s widget ID to the contentWidget property.
You must set the contentWidget property to a valid widget template.
Syntax
Example
Platform Availability
- Android
peekHeight Property
The height at which a collapsed BottomSheet docks.
Syntax
Constants
- BOTTOM_SHEET_PEEK_HEIGHT_AUTO
Example
Platform Availability
- Android
skipCollapsed Property
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
Example
Platform Availability
- Android