Skip to content

Search

Belgeler

widget_rows

The rows a list, tree or table reads: what it holds and what is picked.

Bu sayfada

ui · 5 properties · UI

The rows a list, tree or table reads: what it holds and what is picked.

In a scene, widget_rows is the node key that applies it. A script reaches each property below as a field on node.widget_rows: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.widget_rows.get() and node.widget_rows.set(table).

Properties

property type default description
items list [] The rows a list, tree or table holds. text is the key of the one picked, and every row event reports a row by its key
multi_select bool false Let a list, tree or table hold more than one row: the platform's command key toggles a row and shift takes the run from the last one clicked
on_activate string — Script method called with the row double-clicked in a list, tree or table, on this node or the nearest ancestor whose script declares it
row_height float 0 The pitch of a list, tree or table row, in design pixels; 0 takes the font's own line height At least 0.
selection list [] The keys of the rows a list, tree or table has picked, one of them where it holds one. text is the key of the last row clicked, which is where a shift range measures from; on_change hears the whole list where the widget holds many, and the key where it holds one

Emin misin?