Adds a new control to a page.
add command adds a new control to a page.
This command adds a new
text control to a column with id
The type of the control.
Control ID. ID will be auto-generated if not specified. If you need to get generated ID replace
add command with
addr which means "add with result", for example in Bash:
Parent control ID. If not specified the control is added to the bottom of the page.
Insert control at the specified position in the children collection.
trim allows to specify the maximum number of children to leave after adding new child controls.
trim value trims items from the end; positive - from the start.
For example, if we have the following controls tree:
add to=lines trim=3 text value='Line 4' will result into:
so controls were trimmed from the start to have a total number of children at
On the other hand, running
add to=lines at=0 trim=-3 text value='Line 4' will result into:
so new control was insterted to
lines stack at position 0 and controls were trimmed from the end to have a total number of children at