add HTML support

This commit is contained in:
Evgeny
2021-07-30 12:55:31 +03:00
parent d7570b2b18
commit 898883e6f5
3 changed files with 15 additions and 0 deletions

View File

@@ -20,6 +20,15 @@
Нажатия на кнопки диалога должны обрабатываться в колбеке `onDialogClick(number)`, где 1 - это первая кнопка, 2 - вторая, а -1 - нажатие кнопки "закрыть", если никакие кнопки не были указаны.
Функции `ui:showText(string)` и `ui:showLines(string)` поддерживают многие теги HTML. Например:
```
First line<br/>Second line
<b>Bold Line</b><br/><i>Oblique Line</i>
<font color="red">Red text</font>
<span style="background-color: #00FF00">Text on green background</span>
```
# Системные функции
* `system:openApp(string)` - открывает приложение, имя пакета которого указано в аргументе;

3
error-script.lua Normal file
View File

@@ -0,0 +1,3 @@
function onTick()
local aaa = bbb
end

3
html_test.lua Normal file
View File

@@ -0,0 +1,3 @@
function onResume()
ui:showLines({ "This is <b>bold</b> text" })
end