Bottom Sheet Shell
DHIS2 BottomSheetShell. Wraps compose · ModalBottomSheet. desktop version to be implemented
Parameters
UI data class of type BottomSheetShellUIState with all the values for the ui elements used in the component.
: The insets to use for the bottom sheet shell.
: the icon to be shown.
: Space for the lower buttons, use together with BottomSheetShellDefaults button block padding to ensure a correct style is displayed.
: to be shown under the header.
: Pass custom scroll state when content is scrollable. For example, pass configure it when using LazyColumn
to Modifier.verticalScroll
for content. If you want the content to be scrollable in desktop using the middle mouse button, the modifier Modifier.draggableList must be used.
: Callback when search query is changed.
: Callback when search action is triggered.
: gives access to the onDismiss event.
allows a modifier to be passed externally.
Deprecated
Use the new BottomSheetShell with the new parameters
DHIS2 BottomSheetShell. Wraps compose · ModalBottomSheet. desktop version to be implemented
Need to override searchQuery, onSearchQueryChanged&onSearch in order to show the search bar. (TODO: We can add lint check for this)
Parameters
: title to be shown.
: subTitle to be shown.
: PopUp description.
: Search query to be displayed in the search bar.
: whether to show the divider or not.
: the icon to be shown.
: Space for the lower buttons.
: to be shown under the header.
: Pass custom scroll state when content is scrollable. For example, pass configure it when using LazyColumn
to Modifier.verticalScroll
for content.
: Callback when search query is changed.
: Callback when search action is triggered.
: gives access to the onDismiss event.
allows a modifier to be passed externally.
Alignment for header text.
: Min size for scrollable content.
: Max size for scrollable content.