add show_table
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
10
samples/table-sample2.lua
Normal 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
|
||||
Reference in New Issue
Block a user