IMG_STATE
enum
Media
Lifecycle states for the OrigamImg component (idle, loading, loaded, error).
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- IMG_STATE.IDLE
- Image has not yet started loading.
- IMG_STATE.LOADING
- Image is currently being fetched.
- IMG_STATE.LOADED
- Image loaded successfully.
- IMG_STATE.ERROR
- Image failed to load.
Ecosystem
Used by
Components and props that accept this enum as a value.
Usage
Examples
Ready-to-paste code snippets using this enum.
Using IMG_STATE in script setup