@funidata/ngx-fudis
Version:
Funidata Design System.
29 lines (28 loc) • 1.56 kB
TypeScript
import { FudisTranslationService } from '../../services/translation/translation.service';
import * as i0 from "@angular/core";
export declare class LoadingSpinnerComponent {
protected _translationService: FudisTranslationService;
constructor(_translationService: FudisTranslationService);
/**
* Visible label text displayed under the spinner icon. If not provided, default text 'Loading' is
* used.
*/
label: string;
/**
* Size variant. Variant 'sm' for smaller page sections and 'lg' for full page.
*/
variant: 'sm' | 'lg';
/**
* Status message for screen reader users. Displayed only for 'lg' variant. Fudis provides default
* 'Page is loading' and 'Page load finished' texts.
*/
statusMessage: string | null;
/**
* For variant 'lg' and better screen reader experience, instead of using *ngIf for displaying
* component, set this property true when loading is in progress and false, when loading is not in
* progress. This will trigger screen reader `statusMessage` properties accordingly.
*/
visible: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingSpinnerComponent, "fudis-loading-spinner", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "statusMessage": { "alias": "statusMessage"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, {}, never, never, true, never>;
}