serialize

serializes data to an array of JSON objects

array serialize( [string|number id,boolean all] );
idstring|numberthe ID of the branch
allbooleandefines whether all data in the branch or only the filtered data are serialized
arrayserialized data as an array of JSON objects

Example

$$("datatable1").serialize();

Details

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
If you have not checked yet, be sure to visit site of our main product Webix js framework and page of javascript tree table product.