serializes data to an array of JSON objects
id | string|number | the ID of the branch |
all | boolean | defines whether all data in the branch or only the filtered data are serialized |
array | serialized data as an array of JSON objects |
$$("datatable1").serialize();
By default, only the filtered data are serialized. To serialize all data, pass true as the second parameter:
$$("datatable1").filter(function(obj){
return obj.title.indexOf("The") !== -1;
});
const allData = $$("datatable1").serialize(true);
Back to top