design-angular-kit
Version:
Un toolkit Angular conforme alle linee guida di design per i servizi web della PA
37 lines (36 loc) • 1.55 kB
TypeScript
import { OnInit } from '@angular/core';
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
import { SelectControlGroup, SelectControlOption } from '../../../interfaces/form';
import * as i0 from "@angular/core";
export declare class ItSelectComponent extends ItAbstractFormComponent implements OnInit {
/**
* The select options
*/
options: Array<SelectControlOption> | undefined;
/**
* The select group options
*/
groups: Array<SelectControlGroup> | undefined;
/**
* The select description
*/
description?: string;
/**
* If set, add a `disabled selected` option with value `null` and as text the value of the attribute
* @example 'Select an option'
*/
defaultOption?: string;
ngOnInit(): void;
/**
* Check if the option is selected
* @param option the option
*/
optionIsSelected(option: SelectControlOption): boolean;
/**
* Check if the option is disabled
* @param option the option
*/
optionIsDisabled(option: SelectControlOption): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<ItSelectComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ItSelectComponent, "it-select", never, { "options": { "alias": "options"; "required": false; }; "groups": { "alias": "groups"; "required": false; }; "description": { "alias": "description"; "required": false; }; "defaultOption": { "alias": "defaultOption"; "required": false; }; }, {}, never, ["*", "[error]"], true, never>;
}