Type Alias: GtkGridViewProps
GtkGridViewProps =
GtkListBaseProps&object
Defined in: generated/jsx.ts:3975
Props for the GtkGridView widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:4011 |
enableRubberband? | boolean | Allow rubberband selection. | generated/jsx.ts:3977 |
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:3984 |
minColumns? | number | Minimum number of columns per row. | generated/jsx.ts:3986 |
onActivate? | (position, self) => 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. |
onSelectionChanged? | (ids) => void | null | Called when selection changes with array of selected item IDs | generated/jsx.ts:4003 |
ref? | Ref<Gtk.GridView> | - | generated/jsx.ts:4012 |
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:4010 |
selected? | string[] | null | Array of selected item IDs | generated/jsx.ts:4001 |
selectionMode? | Gtk.SelectionMode | null | Selection mode: SINGLE (default) or MULTIPLE | generated/jsx.ts:4005 |
singleClickActivate? | boolean | Activate rows on single click and select them on hover. | generated/jsx.ts:3988 |
tabBehavior? | Gtk.ListTabBehavior | Behavior of the Tab key | generated/jsx.ts:3990 |