parse

loads data from a client-side resource

void parse(object data);
dataobjecta string or object which represents data

Example

scheduler.parse([
     { start_date:"2020-05-13 6:00", end_date:"2020-05-13 8:00", text:"Event 1"},
     { start_date:"2020-06-09 6:00", end_date:"2020-06-09 8:00", text:"Event 2"}
]);

Related samples

Details

Migration

In v5.2 and upper, scheduler detects the format of data automatically.

But before v5.2, the method included two parameters:

  • data - (object) a string or object which represents data;
  • type - (string) optional, ('json', 'xml', 'ical') the data type. The default value - 'xml'
See also
Change log

The second type parameter of the method has been removed in v5.2.

Back to top