Type Alias: GtkGridViewProps
GtkGridViewProps =
Omit<GtkListBaseProps,"onNotify"> &object
Defined in: generated/jsx.ts:4902
Props for the GtkGridView widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:4938 |
enableRubberband? | boolean | Allow rubberband selection. | generated/jsx.ts:4904 |
maxColumns? | number | Maximum number of columns per row. If this number is smaller than GridView.min-columns, that value is used instead. | generated/jsx.ts:4911 |
minColumns? | number | Minimum number of columns per row. | generated/jsx.ts:4913 |
onActivate()? | (self, position) => void | null | Emitted when a cell has been activated by the user, usually via activating the GtkGridView | list.activate-item action. This allows for a convenient way to handle activation in a gridview. See ListItem.activatable for details on how to use this signal. |
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:4944 |
onSelectionChanged? | (ids) => void | null | Called when selection changes with array of selected item IDs | generated/jsx.ts:4930 |
ref? | Ref<Gtk.GridView> | - | generated/jsx.ts:4957 |
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:4937 |
selected? | string[] | null | Array of selected item IDs | generated/jsx.ts:4928 |
selectionMode? | SelectionMode | null | Selection mode: SINGLE (default) or MULTIPLE | generated/jsx.ts:4932 |
singleClickActivate? | boolean | Activate rows on single click and select them on hover. | generated/jsx.ts:4915 |
tabBehavior? | Gtk.ListTabBehavior | Behavior of the Tab key | generated/jsx.ts:4917 |