Для системных кнопок корневой элемент form→component→button. Для кастомных кнопок form→component→section→component→button. Параметр action. Пространство имен: <ui xmlns="http://www.intertrust.ru/schema/palette/tn-ui"> |
Определяет действие. которое будет происходить при нажатии на кнопку |
<?xml version='1.0' encoding='UTF-8'?> <ui xmlns="http://www.intertrust.ru/schema/palette/tn-ui"> <form schema-ref="{schema name}" id="{id}"> <!-- system action --> <component> <button name="{name}"> <properties> <hide> <negative-condition-ref ref="read"/> </hide> </properties> <hint-pop-up>{hint}</hint-pop-up> <action position=10> <system name="http://intertrust.ru/cmj/relations#copy"/> </action> </button> </component> <!-- custom action --> <section id="RootMenu"> <component> <section id="{id}" name="{name}"> <component> <button name="{name}"> <properties> <hide> <negative-condition-ref ref="read"/> </hide> </properties> <action position=20> <custom> <create schema-ref="{schema name}"> <module ident="{module}"/> </create> </custom> </action> </button> </component> </section> </component> </section> <!-- custom button --> <section id="{id}" name="{name}"> <component> <section id="{id}" name="{name}"> <component> <button name="{name}"> <properties> <disabled> <negative-condition-ref ref="read"/> </disabled> </properties> <action> <custom> <operation save-context="true"> <handler-ref ref="{operation name}"/> </operation> </custom> </action> </button> </component> </section> </component> </section> </form> </ui> |
Параметры | Описание |
---|---|
position | Позиция в линейке меню |
Системные действия
Параметры | Описание |
---|---|
name | Название системного действия или ссылка на него |
Настраиваемые действия
Параметры | Описание |
---|---|
operation | Обработчик операций |
create | Создание корневого tunable-object |
create-sibling | Создание нового tunable-object на одном уровне с контекстным |
create-child | Создание подчиненного tunable-object |
create-copy | Создание нового tunable-object как копии |
save | Сохранение нового tunable-object |
save-existing | Сохранение существующего tunable-object |
open-edit | Открытие tunable-object в режиме редактирования |
open-link | Открытие документа по ссылке |
update-by-link | Обновление контекстного документа по ссылке |
update-linked-doc | Обновление контекстного документа, с помощью диалога выбора связанного документа |
|
Теги и атрибуты: |