Exolynk table which supports multiple columns and rows
Methods
Creates a new row at the top of the table (index 0). All existing rows will be pushed down by one row (index += 1).
let table = new;
table.new_row_top;
Try to get a value from Table object. This function returns a specific value directly e.g. (String, Integer, DateTime, etc.)
Sets a value at the specific row and columm inside the table. If the value you want to set is not valid, the insert will not happen.
Removes an row from the table.
Orders the table based upon the given column in an ascendig way.
Example
let table = new;
table.set_value;
table.set_value;
table.set_value;
table.sort_asc;
assert_eq!;
assert_eq!;
assert_eq!;
Orders the table based upon the given column in an descending way.
Example
let table = new;
table.set_value;
table.set_value;
table.set_value;
table.sort_desc;
assert_eq!;
assert_eq!;
assert_eq!;