Skip to content
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 or number. 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", "[...]", "{...}"

Config

 {
      "max_rows" : 30,  //max number of rows to display per page
      "prop_search" : 10,  //number of objects cycled to gather properties
      "list" : []  
 }

Methods

val

set list

 my_table.val([...]);

get list

 my_table.val();

page

get current page

 my_table.page();

OML

 {"#div:Table": {
      "id": "my_table",
      "max_rows" : 50,
      ...
 }}
Clone this wiki locally