Org Bottom Sheet
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, 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
org Tree Items
list of OrgTreeItem with Org tree information
title
: Header.
subtitle
: optional subtitle.
description
: optional description.
clear All Button Text
: text for clear all button.
done Button Text
: text for accept button.
done Button Icon
: icon for accept button.
no Results Found Text
: text for no results found.
header Text Alignment
Alignment for header text.
icon
: optional icon to be shown above the header .
on Search
: access to the on search event.
on Dismiss
: access to the on dismiss event.
on Item Selected
: access to the on item selected event.
on Item Click
: access to onItemClick event.
on Clear All
: access to the on clear all event.
on Done
: access to the on done event.
modifier
width and size of the barcode.