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

This commit is contained in:
MihailRis 2025-12-10 20:58:54 +03:00
parent 89be2a1837
commit 320870e871
2 changed files with 10 additions and 4 deletions

View file

@ -42,8 +42,11 @@ Examples:
- `ondoubleclick` - lua function called when you double click on an element.
- `onfocus` - lua function called when focusing on an element.
- `ondefocus` - lua function called when the element loses focus.
- `onmouseover` - lua function called when the cursor enters an element.
- `onmouseover` - lua function called when the cursor exits an element.
- `onmouseenter` - lua function called when the cursor enters an element.
- `onmouseleave` - lua function called when the cursor leaves an element.
- `onmouseover` - lua function called when the cursor hovers over an element.
- `onmouseout` - lua function called when the cursor exits an element.
onmouseenter and onmouseleave do not respect the elements hierarchy.
- `tooltip` - tooltip text
- `tooltip-delay` - tooltip show-up delay
- `gravity` - automatic positioning of the element in the container. (Does not work in automatic containers like panel). Values: *top-left, top-center, top-right, center-left, center-center, center-right, bottom-left, bottom-center, bottom-right*.

View file

@ -46,8 +46,11 @@
- `ondoubleclick` - lua функция вызываемая при двойном нажатии на элемент.
- `onfocus` - lua функция вызываемая при фокусировке на элемент.
- `ondefocus` - lua функция вызываемая при потере фокуса элеметом.
- `onmouseover` - lua функция вызываемая при входе курсора в элемент.
- `onmouseover` - lua функция вызываемая при выходе курсора из элемента.
- `onmouseenter` - lua функция вызываемая при входе курсора в элемент.
- `onmouseleave` - lua функция вызываемая при выходе курсора из элемента.
- `onmouseover` - lua функция вызываемая при наведении курсора на элемент.
- `onmouseout` - lua функция вызываемая при выходе курсора из элемента.
onmouseenter и onmouseleave не учитывают иерархию элементов.
- `tooltip` - текст всплывающей подсказки
- `tooltip-delay` - задержка появления всплывающей подсказки
- `gravity` - автоматическое позиционирование элемента в контейнере. (Не работает в автоматических контейнерах, как panel). Значения: *top-left, top-center, top-right, center-left, center-center, center-right, bottom-left, bottom-center, bottom-right*.