Loading
The Loading API indicates to users that a page is loading or an upload is processing.
Anchor to Loading APILoading API( )
Loading API( )
The Loading
API is available on the shopify
global. It displays a loading indicator in the Shopify admin.
Anchor to Loading API-parametersParameters
- Anchor to isLoadingisLoadingboolean
Anchor to Loading API-returnsReturnsvoid
void
LoadingApi
The `Loading` API provides a method to toggle the loading indicator in the Shopify admin.
- isLoading
boolean
void
export type LoadingApi = (isLoading?: boolean) => void;
Was this section helpful?
Loading
shopify.loading(true);
// ...
shopify.loading(false);
examples
Loading
shopify.loading(true); // ... shopify.loading(false);
Preview
