Skip to main content

Type Alias: GtkGridViewProps

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

Defined in: generated/jsx.ts:4902

Props for the GtkGridView widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:4938
enableRubberband?booleanAllow rubberband selection.generated/jsx.ts:4904
maxColumns?numberMaximum number of columns per row. If this number is smaller than GridView.min-columns, that value is used instead.generated/jsx.ts:4911
minColumns?numberMinimum number of columns per row.generated/jsx.ts:4913
onActivate()?(self, position) => void | nullEmitted when a cell has been activated by the user, usually via activating the GtkGridViewlist.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 | 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:4944
onSelectionChanged?(ids) => void | nullCalled when selection changes with array of selected item IDsgenerated/jsx.ts:4930
ref?Ref<Gtk.GridView>-generated/jsx.ts:4957
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:4937
selected?string[] | nullArray of selected item IDsgenerated/jsx.ts:4928
selectionMode?SelectionMode | nullSelection mode: SINGLE (default) or MULTIPLEgenerated/jsx.ts:4932
singleClickActivate?booleanActivate rows on single click and select them on hover.generated/jsx.ts:4915
tabBehavior?Gtk.ListTabBehaviorBehavior of the Tab keygenerated/jsx.ts:4917