add show_table

This commit is contained in:
Evgeny
2021-08-24 17:27:26 +03:00
parent 699671b2ea
commit 7c1b542fe8
7 changed files with 21 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ function on_resume()
apps_names[k] = get_formatted_name(v)
end
ui:show_table(slice(apps_names, 1, 9), 3)
ui:show_grid(slice(apps_names, 1, 9), 3)
end
function on_click(idx)

View File

@@ -1,12 +1,11 @@
function on_resume()
local table = {
"12345678", "", "",
"1", "2", "3",
"4", "5", "6",
"7", "8", "9",
{ "<", "1 USD = 74.023 RUB -0.01%", ">" },
{ "<", "1 USD = 74.023 RUB -0.01%", ">" },
{ "<", "1 USD = 74.023 RUB -0.01%", ">" },
}
ui:show_table(table, 3, true, false, "Nothing there")
ui:show_table(table, 2)
end
function on_click(idx)

10
samples/table-sample2.lua Normal file
View File

@@ -0,0 +1,10 @@
function on_resume()
local tab = {
{ "1234567890" },
{ "1", "2", "3" },
{ "4", "5", "6" },
{ "7", "8", "9" },
}
ui:show_table(tab)
end