Type Alias: GtkListViewProps
GtkListViewProps =
Omit<GtkListBaseProps,"onNotify"> &object
Defined in: generated/jsx.ts:6286
Props for the GtkListView widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:6323 |
enableRubberband? | boolean | Allow rubberband selection. | generated/jsx.ts:6288 |
headerFactory? | Gtk.ListItemFactory | null | Factory for creating header widgets. The factory must be for configuring ListHeader objects. | generated/jsx.ts:6294 |
onActivate()? | (self, position) => void | null | Emitted 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 | null | Called 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 | null | Called when selection changes with array of selected item IDs | generated/jsx.ts:6315 |
ref? | Ref<Gtk.ListView> | - | generated/jsx.ts:6342 |
renderItem() | (item) => ReactNode | Render 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[] | null | Array of selected item IDs | generated/jsx.ts:6313 |
selectionMode? | SelectionMode | null | Selection mode: SINGLE (default) or MULTIPLE | generated/jsx.ts:6317 |
showSeparators? | boolean | Show separators between rows. | generated/jsx.ts:6296 |
singleClickActivate? | boolean | Activate rows on single click and select them on hover. | generated/jsx.ts:6298 |
tabBehavior? | Gtk.ListTabBehavior | Behavior of the Tab key | generated/jsx.ts:6300 |