DayPilot.Calendar.loadingStart

The loadingStart() method displays the loading label in the upper-left corner of the JavaScript Calendar.

You can use this method to indicate that an HTTP call is in progress.

To hide the message, call the loadingStop() method. Usually, this is done when the HTTP response arrives.

Declaration

DayPilot.Calendar.loadingStart(options);

Parameters

The options parameter is available since 2023.4.5820.

  • options.delay (number)- the label will only be displayed if loadingStop is not called within the specified number of milliseconds

  • options.text (string) - label text; if not specified, the value of loadingLabelText will be used (but only if loadingLabelVisible is set to true)

  • options.block (boolean) - whether to block the UI using an overlay <div>; if not specified, blockOnCallBack value will be used

See Also

Example

dp.loadingStart();

const {data} = await DayPilot.Http.get("/events");
dp.update({events:data});

dp.loadingStop();