widget_list
The rows a list or tree reads: its card faces, and what a drag or a mark on a row does.
Bu sayfada
ui · 6 properties · UI
The rows a list or tree reads: its card faces, and what a drag or a mark on a row does.
In a scene, widget_list is the node key that applies it. A script reaches each property below as a field on node.widget_list: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.widget_list.get() and node.widget_list.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
draggable |
bool | false |
Let a drag carry a card of a list with grid_columns out of it, drawn under the pointer; on_drop says where it was let go |
on_drop |
string | — | Script method called with the card a drag let go outside the list, on this node or the nearest ancestor whose script declares it; the pointer is where it landed |
on_mark |
string | — | Script method called with { row, mark } when a mark at the right of a list or tree row is clicked, on this node or the nearest ancestor whose script declares it. The click picks nothing |
on_move |
string | — | Script method called when a dragged row is dropped, with the row moved, the row it landed on, and before, after or into, on this node or the nearest ancestor whose script declares it |
reorderable |
bool | false |
Let a drag move a row of a list or a tree. The kind moves nothing itself: it draws where the row would land and calls on_move, and the rows are the script's to reorder |
sheet |
string | — | The picture a list cuts its card faces from |