Skip to main content

Type Alias: GtkListViewProps

GtkListViewProps = Omit<GtkListBaseProps, "onNotify"> & object

Defined in: generated/jsx.ts:6286

Props for the GtkListView widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:6323
enableRubberband?booleanAllow rubberband selection.generated/jsx.ts:6288
headerFactory?Gtk.ListItemFactory | nullFactory for creating header widgets. The factory must be for configuring ListHeader objects.generated/jsx.ts:6294
onActivate()?(self, position) => 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:6311
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:6329
onSelectionChanged?(ids) => void | nullCalled when selection changes with array of selected item IDsgenerated/jsx.ts:6315
ref?Ref<Gtk.ListView>-generated/jsx.ts:6342
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:6322
selected?string[] | nullArray of selected item IDsgenerated/jsx.ts:6313
selectionMode?SelectionMode | nullSelection mode: SINGLE (default) or MULTIPLEgenerated/jsx.ts:6317
showSeparators?booleanShow separators between rows.generated/jsx.ts:6296
singleClickActivate?booleanActivate rows on single click and select them on hover.generated/jsx.ts:6298
tabBehavior?Gtk.ListTabBehaviorBehavior of the Tab keygenerated/jsx.ts:6300