Package: gtk
Class gtk:tree-expander
Superclassesgtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:tree-expander widget is a widget that provides an expander
for a list. It is typically placed as a bottommost child into a gtk:list-view
widget to allow users to expand and collapse children in a list with a gtk:tree-list-model object. The gtk:tree-expander widget
provides the common UI elements, gestures and keybindings for this purpose. On top of this, the "listitem.expand", "listitem.collapse" and "listitem.toggle-expand" actions are provided to allow adding custom UI for managing expanded state. It is important to mention that you want to set the focusable property to false when using this widget, as you want the keyboard focus to be in the treexpander, and not inside the list to make use of the keybindings. The gtk:tree-list-model object must be set to not be passthrough. Then it will provide gtk:tree-list-row items which can be set via the gtk:tree-expander-list-row function on the expander. The expander will then watch that row item automatically. The gtk:tree-expander-child function sets the widget that displays the actual row contents. The gtk:tree-expander widget can be modified with properties such as indent-for-icon, indent-for-depth, and hide-expander properties to achieve a different appearance. This can even be done to influence individual rows, for example by binding the hide-expander property to the item count of the model of the treelistrow, to hide the expander for rows without children, even if the row is expandable. CSS nodesAccessibility | Returned bySlot Access Functions
Inherited Slot Access FunctionsSee also |
#2023-9-10