diff --git a/README.md b/README.md index c9dd6b9..f0766d7 100644 --- a/README.md +++ b/README.md @@ -103,10 +103,11 @@ If there is a `arguments_help` field in the widget's metadata, its value will be # Application management -* `apps:get_list([sort_by])` - returns a table of package names of all installed applications, `sort_by` - sort option (see below); +`apps:get_list([sort_by], [no_hidden])` - returns the package table of all installed applications, `sort_by` - sort option (see below), `no_hidden` - true if no hidden applications are needed; * `apps:get_name(package)` - returns application name; * `apps:get_color(package)` - returns the color of the application in #XXXXXXXX format; -* `apps:launch(package)` - launches the application. +* `apps:launch(package)` - launches the application; +* `apps:show_edit_dialog(package)` - shows edit dialog of the application. Sorting options: diff --git a/README_ru.md b/README_ru.md index bd71f92..8dbcd8b 100644 --- a/README_ru.md +++ b/README_ru.md @@ -103,10 +103,11 @@ ui:prepare_context_menu({ # Функции управления приложениями -* `apps:get_list([sort_by])` - возвращает таблицу пакетов всех установленных приложений, `sort_by` - вариант сортировки (см. ниже); +* `apps:get_list([sort_by], [no_hidden])` - возвращает таблицу пакетов всех установленных приложений, `sort_by` - вариант сортировки (см. ниже), `no_hidden` - true, если скрытые приложения не нужны; * `apps:get_name(package)` - возвращает имя приложения; * `apps:get_color(package)` - возвращает цвет приложения в формате #XXXXXX; -* `apps:launch(package)` - запускает приложение. +* `apps:launch(package)` - запускает приложение; +* `apps:show_edit_dialog(package)` - показывает диалог редактирования приложения. Варианты сортировки: diff --git a/samples/apps-sample.lua b/samples/apps-sample.lua index cf1ce12..193e3bc 100644 --- a/samples/apps-sample.lua +++ b/samples/apps-sample.lua @@ -18,7 +18,8 @@ function on_resume() end function on_click(idx) - apps:launch(all_apps[idx]) + --apps:launch(all_apps[idx]) + apps:show_edit_dialog(all_apps[idx]) end -- utils