Loader
Panoramax.components.ui.Loader ⇐ lit.LitElement
Kind: static class of Panoramax.components.ui
Extends: lit.LitElement
Element: pnx-loader
- .Loader ⇐
lit.LitElement
- new Loader()
- .properties :
Object
- .isVisible() ⇒
boolean
- .dismiss([err], [errMeaningful], [next])
new Loader()
Loader component display a full page covering for user waiting.
Example
loader.properties : Object
Component properties.
Kind: instance property of Loader
Properties
Name | Type | Default | Description |
---|---|---|---|
[visible] | boolean |
true |
Is the loader visible to user ? |
[no-label] | boolean |
false |
Set to true to avoid loading label display |
[value] | number |
Progress bar percentage (0-100) |
loader.isVisible() ⇒ boolean
Is the loader currently visible ?
Kind: instance method of Loader
Returns: boolean
- True if visible
loader.dismiss([err], [errMeaningful], [next])
Dismiss loader, or show error
Kind: instance method of Loader
Param | Type | Default | Description |
---|---|---|---|
[err] | object |
|
Optional error object to show in browser console |
[errMeaningful] | str |
|
Optional error message to show to user |
[next] | fct |
|
Optional function to run after loader dismiss |