Skip to main content

Type Alias: GtkTreeExpanderProps

GtkTreeExpanderProps = WidgetProps & object

Defined in: generated/jsx.ts:10825

Props for the GtkTreeExpander widget.

Type Declaration

NameTypeDescriptionDefined in
child?Gtk.Widget | nullThe child widget with the actual contents.generated/jsx.ts:10827
children?ReactNode-generated/jsx.ts:10843
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:10836
indentForDepth?booleanTreeExpander indents the child according to its depth.generated/jsx.ts:10838
indentForIcon?booleanTreeExpander indents the child by the width of an expander-icon if it is not expandable.generated/jsx.ts:10840
listRow?Gtk.TreeListRow | nullThe list row to track for expander state.generated/jsx.ts:10842
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:10849
ref?Ref<Gtk.TreeExpander>-generated/jsx.ts:10855