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: "2027-05-13 6:00", end_date: "2027-05-13 8:00", text: "Event 1" },
{ start_date: "2027-06-09 6:00", end_date: "2027-06-09 8:00", text: "Event 2" }
]);

Migration

In v5.2 and later, Scheduler detects the data format automatically.

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

  • data - (object) a string or object that represents data
  • type - (string) optional, ('json', 'xml', 'ical') the data type. The default value is 'xml'

Change log

  • The second type parameter of the method was 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.