ListBox

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

Creates a org.gnome.gtk.ListBox.

Parameters

modifier

Compose Modifier for layout and styling.

activateOnSingleClick

Whether rows activate on single click.

adjustment

The adjustment used for vertical scrolling.

selectionMode

The selection mode.

showSeparators

Whether the rows have separators between them.

tabBehavior

The behavior of Tab and Shift + Tab keys.

onSelectRow

Callback triggered when a row is selected.

onSelectedRowsChange

Callback triggered when the selection changes.

onSelectAll

Callback triggered when the shortcut for selecting everything is activated.

onUnselectAll

Callback triggered when the shortcut for unselecting everything is activated.

placeholder

Component shown when the list is empty.

content

The list of ListBoxRow.