script: add getIndex function
This commit is contained in:
parent
beea543d96
commit
42f316cf81
3 changed files with 19 additions and 1 deletions
|
|
@ -96,6 +96,13 @@ Returns the property called `"name"` of the first matching widget.
|
|||
|
||||
----
|
||||
|
||||
#### `getIndex(id)`
|
||||
- `id` (optional): widget `id` as a string. Defaults to `"this"`.
|
||||
|
||||
Returns the widget's index in its container.
|
||||
|
||||
----
|
||||
|
||||
#### `updateProp(id, name)`
|
||||
- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
|
||||
- `name`: property name.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue