App development
Create an app
Create a support ticket
Search…
Overview
Quick start
Changelog
Platform concepts
Apps
Extensions
Regions
Authentication
Deprecation policy
Extensions
Content extensions
Editing extensions
Publish extensions
Frontend development
Assets
Development URL
Error handling
Localization
Notifications
Rich controls
JSX
WebGL
Backend development
Base URL
Continuation
Signature verification
SDKs
Distribution
UX guidelines
Submission checklist
Creating the App Directory listing
Client API
EditingExtensionClient.API
create
onReady
onControlsEvent
onLayoutChange
onPresetsRequest
onPresetSelected
onImageUpdate
onSaveRequest
onTouchModeExit
onViewportResize
updateControlPanel
updateLayout
remoteProcess
reportError
showNotification
toggleSpinner
toggleTouchMode
exit
CanvaDataType
CanvaElement
CanvaElementLayout
CanvaImageBlob
CanvaImageHelpers
CanvaImageUrl
CanvaMedia
init
Server API
Overview
GET /apps/configured
POST /configuration
POST /configuration/delete
POST /content/resources/find
POST /editing/image/process
POST /editing/image/process/get
POST /publish/resources/find
POST /publish/resources/get
POST /publish/resources/upload
Redirect URL
Reference
Locales
Powered By
GitBook
toggleSpinner
API reference for the "toggleSpinner" method.
Shows or hides a loading spinner.
Usage
1
const
canva
=
window
.
canva
.
init
();
2
​
3
canva
.
onReady
(
async
(
opts
)
=>
{
4
// Show the spinner
5
canva
.
toggleSpinner
(
"preview"
,
true
);
6
​
7
// Hide the spinner
8
// canva.toggleSpinner('preview', false);
9
});
Copied!
Parameters
Name
Type
Required
Description
area
string
Yes
The location of the spinner. The only supported value is
"preview"
, which places the spinner in front of the user's image.
visible
boolean
Yes
If
true
, the spinner is visible. If
false
, the spinner is not visible.
Returns
void
Previous
showNotification
Next
toggleTouchMode
Last modified
8mo ago
Copy link
Contents
Usage
Parameters
Returns