File

core/common/loading-message.component.ts

Description

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).

Example :
<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>

Implements

OnDestroy

Metadata

Index

Methods

Methods

ngOnDestroy
ngOnDestroy()
Returns : void
Async typeIn
typeIn(charDelay: number)

Types the message in one character at a time.

Parameters :
Name Type Optional Default value
charDelay number No 20
Returns : Promise<void>
Async typeOut
typeOut(charDelay: number)

Removes the message one character at a time.

Parameters :
Name Type Optional Default value
charDelay number No 10
Returns : Promise<void>

results matching ""

    No results matching ""