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.
DayPilot.Calendar.columns.load(url[, success[, error]])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.
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.
const dp = new DayPilot.Calendar("dp", {
// ...
});
dp.init();
dp.columns.load("/api/resources", (args) => {
dp.message("Resources loaded");
});DayPilot.Calendar.columnsLoadMethod
Event Loading [doc.daypilot.org]