serialize

serializes data to an array of JSON objects

array serialize( [boolean all] );

Parameters

allbooleandefines whether all data or only the filtered data are serialized

Returns

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 html5 library and page of javascript datatables product.