DayPilot.Scheduler.links.load

The links.load() methods loads link data directly from the specified URL using an HTTP request. As soon as it receives a response, the JavaScript Scheduler component updates the view and displays the links.

Syntax

DayPilot.Scheduler.links.load(url[, success[, error[, options]]]);

Parameters

  • url (string) - JSON endpoint URL

  • success (function) - success event handler

  • error (function) - error event handler

  • options (object) - additional options: dontAddStartEnd (boolean) - doesn't add the viewport start and end dates to the query string

Example

dp.links.load("/api/links", function(args) {
  dp.message("Links loaded");
});