Overview
Headless avatar image with a delayed, consumer supplied text fallback.
Selector
qz-avatar
| Input |
Type |
Default |
Required |
Description |
src |
string | null |
null |
|
|
alt |
string |
'' |
|
|
fallback |
string |
'' |
|
|
fallbackDelay |
number |
0 |
|
|
Properties
| Name |
Type |
Description |
readonly imageLoaded |
WritableSignal<boolean> |
|
readonly showFallback |
WritableSignal<boolean> |
|
readonly state |
() => "loading" | "loaded" | "empty" | "fallback" |
|
Public methods
onLoad
onLoad(event: Event): void
| Parameter |
Type |
Optional |
Description |
event |
Event |
|
|
onError
onError(event: Event): void
| Parameter |
Type |
Optional |
Description |
event |
Event |
|
|