Skip to main content

Type Alias: GtkGridViewProps

GtkGridViewProps = GtkListBaseProps & object

Defined in: generated/jsx.ts:3975

Props for the GtkGridView widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:4011
enableRubberband?booleanAllow rubberband selection.generated/jsx.ts:3977
maxColumns?numberMaximum number of columns per row. If this number is smaller than GridView.min-columns, that value is used instead.generated/jsx.ts:3984
minColumns?numberMinimum number of columns per row.generated/jsx.ts:3986
onActivate?(position, self) => 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.
onSelectionChanged?(ids) => void | nullCalled when selection changes with array of selected item IDsgenerated/jsx.ts:4003
ref?Ref<Gtk.GridView>-generated/jsx.ts:4012
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:4010
selected?string[] | nullArray of selected item IDsgenerated/jsx.ts:4001
selectionMode?Gtk.SelectionMode | nullSelection mode: SINGLE (default) or MULTIPLEgenerated/jsx.ts:4005
singleClickActivate?booleanActivate rows on single click and select them on hover.generated/jsx.ts:3988
tabBehavior?Gtk.ListTabBehaviorBehavior of the Tab keygenerated/jsx.ts:3990