update doc/*/xml-ui-layouts.md

This commit is contained in:
MihailRis
2025-07-10 00:58:31 +03:00
parent 93c6a66cb7
commit be5f43086d
3 changed files with 39 additions and 1 deletions
+19
View File
@@ -163,6 +163,25 @@ Container for embedding an external document. Content is scaling to the iframe s
- `src` - document id in the format `pack:name` (`pack/layouts/name.xml`)
## *select*
Drop-down list. Options are described by `option` sub-elements, the `value` attribute of which contains the value, the inner text is the text displayed in the UI.
Example of list description:
```xml
<select selected="entity" width="200"
onselect="function(opt) print(opt) end">
<option value="block">Block</option>
<option value="item">Item</option>
<option value="entity">Entity</option>
</select>
```
- `width` - minimum content width. Default: 100.
- `selected` - initially selected value. Default: "".
- `onselect` - function to which the user-selected value is passed
# Inventory elements
## *inventory*