-
Notifications
You must be signed in to change notification settings - Fork 0
Table
Eric edited this page Sep 14, 2022
·
14 revisions
Table is a sortable table that renders content raw, or render its type instead if content is not
string
ornumber
. Consider the array
[{"name" : "Eric", "bio" : "<p>some html</p>", "age": 30, "colors": ["red" "yellow"], "address" : {"street" ...}}, {...}]
will be rendered, in a row as
"Eric", "</>", "30", "[...]", "{...}"
{
"max_rows" : 30, //max number of rows to display per page
"prop_search" : 10, //number of objects cycled to gather properties
"list" : []
}
set list
my_table.val([...]);
get list
my_table.val();
get current page
my_table.page();
{"#div:Table": {
"id": "my_table",
"max_rows" : 50,
...
}}