@funidata/ngx-fudis
Version:
Funidata Design System.
33 lines (32 loc) • 1.57 kB
TypeScript
import { PopoverApiDirective } from '../../../directives/popover/popover-api.directive';
import { FudisTranslationService } from '../../../services/translation/translation.service';
import { FudisInputSize } from '../../../types/forms';
import * as i0 from "@angular/core";
export declare class LabelComponent extends PopoverApiDirective {
protected _translationService: FudisTranslationService;
constructor(_translationService: FudisTranslationService);
/**
* Id for label, e. g. used in Dropdown to link ngMaterial mat-select with 'aria-labelledby' to
* fudis-label
*/
id: string;
/**
* Text visible as label
*/
text: string;
/**
* HTML 'for' attribute. E.g. if text-input's id is 'text-input-1', give this id as 'for'
* attribute to the label
*/
for: string;
/**
* Show text indicating if form element associated with the label is required or not
*/
required: boolean | null;
/**
* Size of Label's parent. Used to trigger Label height calculation if parent's size changes.
*/
parentSize: FudisInputSize | 'xs';
static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "fudis-label", never, { "id": { "alias": "id"; "required": true; }; "text": { "alias": "text"; "required": true; }; "for": { "alias": "for"; "required": false; }; "required": { "alias": "required"; "required": false; }; "parentSize": { "alias": "parentSize"; "required": false; }; }, {}, never, never, false, never>;
}