This commit is contained in:
Evgeny
2021-08-31 14:33:15 +03:00
parent 28d837af04
commit 7d03496bfc
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ If the first argument of the dialog contains two lines separated by `\n`, the se
* `ui:show_context_menu(table)` - function shows the context menu. Function takes a table of tables with icons and menu item names as its argument. For example, the following code will prepare a context menu of three items: * `ui:show_context_menu(table)` - function shows the context menu. Function takes a table of tables with icons and menu item names as its argument. For example, the following code will prepare a context menu of three items:
``` ```
ui:prepare_context_menu({ ui:show_context_menu({
{ "share", "Menu item 1" } { "share", "Menu item 1" }
{ "copy", "Menu item 2" } { "copy", "Menu item 2" }
{ "trash", "Menu item 3" }, { "trash", "Menu item 3" },

View File

@@ -65,7 +65,7 @@ First line<br/>Second line
* `ui:show_context_menu(table)` - функция показывает контекстное меню. В качестве аргумента функция принимает таблицу таблиц с иконками и названиями элементов меню. Например, следующий код подготовит контекстное меню из трех элементов: * `ui:show_context_menu(table)` - функция показывает контекстное меню. В качестве аргумента функция принимает таблицу таблиц с иконками и названиями элементов меню. Например, следующий код подготовит контекстное меню из трех элементов:
``` ```
ui:prepare_context_menu({ ui:show_context_menu({
{ "share", "Menu item 1" }, { "share", "Menu item 1" },
{ "copy", "Menu item 2" }, { "copy", "Menu item 2" },
{ "trash", "Menu item 3" }, { "trash", "Menu item 3" },