Loads rows from a JSON string into the table. The JSON string must be formatted as per the following example (which is split into multiple rows for clarity):
This represents a Javascript object with a single "rows" property which contains an array of table rows where each row contains columnName:value property pairs.
Any value that can be specified for a column's value property can be used, see Field#setValue(Object).
Columns with null values can be either excluded completely or "null" can be specified as the column value as per the example above. The #toJSON() methods
can be used to generate a JSON string with this format from an existing table.
This method does not delete any existing rows that might exist in the table. If this is required #resetTable() should be called first.
Examples:
var jsonString = "{rows:[{Name:Smith, Age:31, StartDate:1459206000000}, {Name:Mendez, Age:23, StartDate:1462306000000}]}"
tables.ORDERS.loadFromJSON(jsonString);
tables.ORDERS.control.scrollToTop(); //scroll to the top of the table
This method does not delete any existing rows that might exist in the table. If this is required #resetTable() should be called first.
Examples: