Skip to content

Search

Dokumentasi

widget_child

What a child says to the parent it sits in, whatever its own kind: a grid's cell, a fold's header, a menu's row.

Di halaman ini

ui · 4 properties · UI

What a child says to the parent it sits in, whatever its own kind: a grid's cell, a fold's header, a menu's row.

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

Properties

property type default description
column string — On a grid's child: the columns it covers, in the words row takes
keep_open bool false On a menu's row: leave the menu open when clicked, as a toggle does; any other row closes it
row string — On a grid's child: the rows it covers, as a line counted from 1 (2, or from the end below zero), a first and last line (1 / 3), a span (span 2, 2 / span 2), or the name of one of the grid's areas. Empty puts it in the next free cell
title_bar bool false On a fold's child: drawn in the fold's header after its arrow and caption, as Godot's title bar control is

Kamu yakin?