Skip to main content

Type Alias: GtkListViewProps

GtkListViewProps = GtkListBaseProps & object

Defined in: generated/jsx.ts:5084

Props for the GtkListView widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:5121
enableRubberband?booleanAllow rubberband selection.generated/jsx.ts:5086
headerFactory?Gtk.ListItemFactory | nullFactory for creating header widgets. The factory must be for configuring ListHeader objects.generated/jsx.ts:5092
onActivate?(position, self) => void | nullEmitted when a row has been activated by the user. Activation usually happens via the list.activate-item action of the GtkListView. This allows for a convenient way to handle activation in a listview. See ListItem.set_activatable for details on how to use this signal.generated/jsx.ts:5109
onSelectionChanged?(ids) => void | nullCalled when selection changes with array of selected item IDsgenerated/jsx.ts:5113
ref?Ref<Gtk.ListView>-generated/jsx.ts:5122
renderItem()(item) => ReactNodeRender function for list items. Called with null during setup (for loading state) and with the actual item during bind.generated/jsx.ts:5120
selected?string[] | nullArray of selected item IDsgenerated/jsx.ts:5111
selectionMode?Gtk.SelectionMode | nullSelection mode: SINGLE (default) or MULTIPLEgenerated/jsx.ts:5115
showSeparators?booleanShow separators between rows.generated/jsx.ts:5094
singleClickActivate?booleanActivate rows on single click and select them on hover.generated/jsx.ts:5096
tabBehavior?Gtk.ListTabBehaviorBehavior of the Tab keygenerated/jsx.ts:5098