core/common/loading-message.component.ts
A loading message component for use inside c8y-loading with layout="stepper".
Each message is hidden by default and shown when the parent calls showStep(index).
Use content projection to provide any HTML content for the loading step.
Note: This component does not perform any translation. If the displayed text needs to be
translated, pass it in an already-translated form (e.g. via TranslateService or the
translate pipe applied before binding).
<c8y-loading layout="stepper" #loader>
<c8y-loading-message>Connecting to server…</c8y-loading-message>
<c8y-loading-message>Fetching data…</c8y-loading-message>
</c8y-loading>
<button (click)="loader.showStep(1)">Next</button>
OnDestroy
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | c8y-loading-message |
| standalone | true |
| template | |
Methods |
|
| ngOnDestroy |
ngOnDestroy()
|
|
Returns :
void
|
| Async typeIn | ||||||||
typeIn(charDelay: number)
|
||||||||
|
Types the message in one character at a time.
Parameters :
Returns :
Promise<void>
|
| Async typeOut | ||||||||
typeOut(charDelay: number)
|
||||||||
|
Removes the message one character at a time.
Parameters :
Returns :
Promise<void>
|