ListBox

@Composable
fun ListBox(modifier: Modifier = Modifier, activateOnSingleClick: Boolean = true, adjustment: Adjustment? = null, selectionMode: SelectionMode = SelectionMode.SINGLE, showSeparators: Boolean = false, onSelectRow: (row: ListBoxRow?) -> Unit = {}, onSelectedRowsChanges: () -> Unit = {}, onSelectAll: () -> Unit = {}, onUnselectAll: () -> Unit = {}, placeholder: @Composable () -> Unit = {}, content: @Composable () -> Unit)

TODO:

  • filter func

  • header func

  • placeholder

  • sort func

Parameters

onSelectRow

This signal is emitted when a new row is selected, or null when the selection is cleared.

onSelectedRowsChanges

This signal is emitted when the set of selected rows changes.

onSelectAll

This signal is a keybinding signal which gets emitted to select all children of the box, if the selection mode permits it. The default bindings for this signal is Ctrl-a.

onUnselectAll

This signal is a keybinding signal which gets emitted to unselect all children of the box, if the selection mode permits it. The default bindings for this signal is Ctrl-Shift-a.