Skip to main content

parse

Description

Loads data from a client-side resource

parse: (data: any) => void

Parameters

  • data - (required) object - a 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"}
]);

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'

Change log

  • The second type parameter of the method has been removed in v5.2.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.