Toggle Loading UI

Toggle Loading UI - kintone.showLoading(state)

Shows or hides the loading UI component.

Function

Desktop

kintone.showLoading(state)

Parameters

Parameter Type Required Description
state String Required The loading UI state.
  • VISIBLE: Shows the loading UI.
  • HIDDEN: Hides the loading UI.

Returns

A Promise object.
The following values can be retrieved when the Promise object is fulfilled.

Sample Request

1
2
3
4
5
6
7
8
// Show loading UI
kintone.showLoading('VISIBLE');

// Execute long-running process
setTimeout(() => {
  // Hide loading UI
  kintone.showLoading('HIDDEN');
}, 3000);

Available Pages

Desktop

However, it cannot be used on the following pages:

  • Search results
  • Marketplace
  • Plug-in settings page

Notes

  • While the loading UI is shown, users cannot operate on the page.
  • Only one loading UI can be shown at a time through customization. However, this is independent of Kintone's built-in loading functionality.