DayPilot.Calendar.columns.load

The columns.load() method loads resource column data from the specified URL using an AJAX request.

The HTTP method is controlled by the columnsLoadMethod property.

Declaration

DayPilot.Calendar.columns.load(url[, success[, error]])

Parameters

  • url (string) - JSON endpoint URL.

  • success (function) - optional callback invoked after the columns have been loaded.

  • error (function) - optional callback invoked if the request fails.

Notes

Use this method when the list of calendar resources is loaded on demand from the server and needs to be refreshed without rebuilding the component.

Example

const dp = new DayPilot.Calendar("dp", {
  // ...
});
dp.init();

dp.columns.load("/api/resources", (args) => {
  dp.message("Resources loaded");
});

See Also

DayPilot.Calendar.columnsLoadMethod

Event Loading [doc.daypilot.org]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript