Skip to main content

Type Alias: GtkTreeViewProps

GtkTreeViewProps = WidgetProps & object

Defined in: generated/jsx.ts:8831

Props for the GtkTreeView widget.

Type Declaration

NameTypeDescriptionDefined in
activateOnSingleClick?booleanThe activate-on-single-click property specifies whether the "row-activated" signal will be emitted after a single click.generated/jsx.ts:8836
enableGridLines?Gtk.TreeViewGridLines-generated/jsx.ts:8837
enableSearch?boolean-generated/jsx.ts:8838
enableTreeLines?boolean-generated/jsx.ts:8839
expanderColumn?Gtk.TreeViewColumn | null-generated/jsx.ts:8840
fixedHeightMode?booleanSetting the ::fixed-height-mode property to %TRUE speeds up GtkTreeView by assuming that all rows have the same height. Only enable this option if all rows are the same height. Please see gtk_tree_view_set_fixed_height_mode() for more information on this option.generated/jsx.ts:8848
hadjustment?Gtk.AdjustmentHorizontal GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:8884
headersClickable?boolean-generated/jsx.ts:8849
headersVisible?boolean-generated/jsx.ts:8850
hoverExpand?booleanEnables or disables the hover expansion mode of tree_view. Hover expansion makes rows expand or collapse if the pointer moves over them. This mode is primarily intended for treeviews in popups, e.g. in GtkComboBox or GtkEntryCompletion.generated/jsx.ts:8859
hoverSelection?booleanEnables or disables the hover selection mode of tree_view. Hover selection makes the selected row follow the pointer. Currently, this works only for the selection modes %GTK_SELECTION_SINGLE and %GTK_SELECTION_BROWSE. This mode is primarily intended for treeviews in popups, e.g. in GtkComboBox or GtkEntryCompletion.generated/jsx.ts:8869
hscrollPolicy?Gtk.ScrollablePolicyDetermines when horizontal scrolling should start.generated/jsx.ts:8886
levelIndentation?numberExtra indentation for each level.generated/jsx.ts:8871
model?Gtk.TreeModel | null-generated/jsx.ts:8872
onColumnsChanged?(self) => void | nullThe number of columns of the treeview has changed.generated/jsx.ts:8896
onCursorChanged?(self) => void | nullThe position of the cursor (focused cell) has changed.generated/jsx.ts:8898
onExpandCollapseCursorRow?(object, p0, p1, self) => boolean | null-generated/jsx.ts:8899
onMoveCursor?(step, direction, extend, modify, self) => boolean | nullThe GtkTreeView::move-cursor signal is a [keybinding signal]SignalAction which gets emitted when the user presses one of the cursor keys. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically. In contrast to gtk_tree_view_set_cursor() and gtk_tree_view_set_cursor_on_cell() when moving horizontally GtkTreeView::move-cursor does not reset the current selection.generated/jsx.ts:8911
onRowActivated?(path, column, self) => void | nullThe "row-activated" signal is emitted when the method TreeView.row_activated is called. This signal is emitted when the user double-clicks a treeview row with the TreeView.activate-on-single-click property set to %FALSE, or when the user single-clicks a row when that property set to %TRUE. This signal is also emitted when a non-editable row is selected and one of the keys: Space, Shift+Space, Return or Enter is pressed. For selection handling refer to the tree widget conceptual overview as well as GtkTreeSelection.generated/jsx.ts:8930
onRowCollapsed?(iter, path, self) => void | nullThe given row has been collapsed (child nodes are hidden).generated/jsx.ts:8932
onRowExpanded?(iter, path, self) => void | nullThe given row has been expanded (child nodes are shown).generated/jsx.ts:8934
onSelectAll?(self) => boolean | null-generated/jsx.ts:8935
onSelectCursorParent?(self) => boolean | null-generated/jsx.ts:8936
onSelectCursorRow?(object, self) => boolean | null-generated/jsx.ts:8937
onStartInteractiveSearch?(self) => boolean | null-generated/jsx.ts:8938
onTestCollapseRow?(iter, path, self) => boolean | nullThe given row is about to be collapsed (hide its children nodes). Use this signal if you need to control the collapsibility of individual rows.generated/jsx.ts:8943
onTestExpandRow?(iter, path, self) => boolean | nullThe given row is about to be expanded (show its children nodes). Use this signal if you need to control the expandability of individual rows.generated/jsx.ts:8948
onToggleCursorRow?(self) => boolean | null-generated/jsx.ts:8949
onUnselectAll?(self) => boolean | null-generated/jsx.ts:8950
ref?Ref<Gtk.TreeView>-generated/jsx.ts:8951
reorderable?boolean-generated/jsx.ts:8873
rubberBanding?boolean-generated/jsx.ts:8874
searchColumn?number-generated/jsx.ts:8875
showExpanders?boolean%TRUE if the view has expanders.generated/jsx.ts:8877
tooltipColumn?number-generated/jsx.ts:8878
vadjustment?Gtk.AdjustmentVertical GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:8892
vscrollPolicy?Gtk.ScrollablePolicyDetermines when vertical scrolling should start.generated/jsx.ts:8894