UNPKG

@ctodev/cclibrary-typings

Version:

Library typings for use with CLARC INFINITY

35 lines (34 loc) 1.3 kB
import { ElementRef } from '@angular/core'; import { displayElement } from '../../tcc-abstract-display-element'; import { TccInputMask } from '../../../../models/inputMask.model'; export declare class TccBooleanElementComponent extends displayElement { _element: TccInputMask._DisplayCheckboxElement | TccInputMask._DisplaySwitchElement; _value: boolean; _default: boolean; _margin: TccInputMask.fieldMargin; private treatUndefinedAsTrue; constructor(elementRef: ElementRef); /** * get the value of the element * * @returns element.value */ _getValue(onlyChanged?: boolean): boolean; refresh(): void; verify(): boolean; focus(): void; protected onSetElement(): void; protected onSetForm(): void; protected changeElement(): void; /** * emits the changeEvent -> only on changeEnd (only if the element is not readonly) * example: inputElement: after change AND focusOut; select: on select option; */ changeEvent(): void; /** * emits the changeEventExtended -> every keydown or any changes to the element (only if the element is not readonly) * * @param {boolean} changeElement if the element should be changed (_element.value) */ changeEventExtended(changeElement?: boolean): void; }