mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): update stencil (#16506)
This commit is contained in:
@@ -8,6 +8,26 @@ Loading controllers programmatically control the loading component. Loadings can
|
||||
<!-- Auto Generated Below -->
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
### Javascript
|
||||
|
||||
```javascript
|
||||
async function presentLoading() {
|
||||
const loadingController = document.querySelector('ion-loading-controller');
|
||||
await loadingController.componentOnReady();
|
||||
|
||||
const loadingElement = await loadingController.create({
|
||||
message: 'Please wait...',
|
||||
spinner: 'crescent',
|
||||
duration: 2000
|
||||
});
|
||||
return await loadingElement.present();
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Methods
|
||||
|
||||
### `create(opts?: LoadingOptions | undefined) => Promise<HTMLIonLoadingElement>`
|
||||
|
||||
Reference in New Issue
Block a user