iterami
/
Docs.htm
/
common HTM Repos
/
tables.js
/tables_add(table)
Adds sorting buttons to each <td> in the 1st child of the 1st child of the table, which is typically a header <tr> in a <thead> or <tbody>.
Ignores tables and columns with
"tables-nosort"
class.
Adds the
"tables-added"
class to prevent adding multiple sorting buttons to 1 table.
Adds a
"tables-main-N"
class to indicate which column contains a unique value for each row.
Arg
Default
Type
table
HTML element