Skip to main content

Type Alias: GtkTreeExpanderProps

GtkTreeExpanderProps = WidgetProps & object

Defined in: generated/jsx.ts:8809

Props for the GtkTreeExpander widget.

Type Declaration

NameTypeDescriptionDefined in
child?Gtk.Widget | nullThe child widget with the actual contents.generated/jsx.ts:8811
children?ReactNode-generated/jsx.ts:8827
hideExpander?booleanWhether the expander icon should be hidden in a GtkTreeListRow. Note that this property simply hides the icon. The actions and keybinding (i.e. collapse and expand) are not affected by this property. A common use for this property would be to bind to the number of children in a GtkTreeListRow's model in order to hide the expander when a row has no children.generated/jsx.ts:8820
indentForDepth?booleanTreeExpander indents the child according to its depth.generated/jsx.ts:8822
indentForIcon?booleanTreeExpander indents the child by the width of an expander-icon if it is not expandable.generated/jsx.ts:8824
listRow?Gtk.TreeListRow | nullThe list row to track for expander state.generated/jsx.ts:8826
ref?Ref<Gtk.TreeExpander>-generated/jsx.ts:8828