OrgBottomSheet

fun OrgBottomSheet(orgTreeItems: List<OrgTreeItem>, modifier: Modifier = Modifier, title: String? = null, subtitle: String? = null, description: String? = null, clearAllButtonText: String = provideStringResource("clear_all"), doneButtonText: String? = null, doneButtonIcon: ImageVector = Icons.Filled.Check, windowInsets: @Composable () -> WindowInsets = { BottomSheetDefaults.windowInsets }, bottomSheetLowerPadding: Dp = Spacing0, noResultsFoundText: String = provideStringResource("no_results_found"), headerTextAlignment: TextAlign = TextAlign.Center, icon: @Composable () -> Unit? = null, onSearch: (String) -> Unit? = null, onDismiss: () -> Unit, onItemClick: (uid: String) -> Unit, onItemSelected: (uid: String, checked: Boolean) -> Unit, onClearAll: () -> Unit? = null, onDone: () -> Unit)

DHIS2 OrgBottomSheet component designed to be used with Input Org Unit, wraps DHIS2 BottomSheetShell.

Parameters

orgTreeItems

list of OrgTreeItem with Org tree information

title

Header.

subtitle

optional subtitle.

description

optional description.

clearAllButtonText

text for clear all button.

doneButtonText

text for accept button.

doneButtonIcon

icon for accept button.

windowInsets

The insets to use for the bottom sheet shell.

bottomSheetLowerPadding

padding for the bottom sheet.

noResultsFoundText

text for no results found.

headerTextAlignment

Alignment for header text.

icon

optional icon to be shown above the header .

onSearch

access to the on search event.

onDismiss

access to the on dismiss event.

onItemSelected

access to the on item selected event.

onItemClick

access to onItemClick event.

onClearAll

access to the on clear all event.

onDone

access to the on done event.

modifier

width and size of the barcode.