UNPKG

novo-elements

Version:

Bullhorn's NOVO Element Repository for Angular 2

93 lines (92 loc) 2.34 kB
import { FormControl, FormGroup } from '@angular/forms'; import { EventEmitter } from '@angular/core'; import { NovoControlConfig } from './FormControls'; export declare class NovoFormControl extends FormControl { displayValueChanges: EventEmitter<any>; hidden: boolean; required: boolean; readOnly: boolean; hasRequiredValidator: boolean; label: string; tooltip: string; tooltipPosition: string; initialValue: any; valueHistory: any[]; validators: any; config: any; sortOrder: number; controlType: string; placeholder: string; multiple: boolean; headerConfig: any; optionsType: string; maxlength: number; minlength: number; options: Array<any>; type: string; subType: string; name: string; closeOnSelect: boolean; interactions: Array<Object>; appendToBody: boolean; parentScrollSelector: string; description?: string; layoutOptions?: { order?: string; download?: boolean; labelStyle?: string; draggable?: boolean; iconStyle?: string; }; military?: boolean; tipWell?: { tip: string; icon?: string; button?: boolean; }; private historyTimeout; constructor(value: any, control: NovoControlConfig); /** * @name hide * @param clearValue - flag to reset the control's value */ hide(clearValue?: boolean): void; /** * @name show */ show(): void; /** * @name setRequired * @param isRequired */ setRequired(isRequired: boolean): void; /** * @name setValue * * @param value * @param onlySelf * @param emitEvent * @param emitModelToViewChange * @param emitViewToModelChange * */ setValue(value: any, {onlySelf, emitEvent, emitModelToViewChange, emitViewToModelChange}?: { onlySelf?: boolean; emitEvent?: boolean; emitModelToViewChange?: boolean; emitViewToModelChange?: boolean; }): void; /** * @name setReadOnly * @param isReadOnly */ setReadOnly(isReadOnly: boolean): void; /** * @name markAsInvalid * @param message */ markAsInvalid(message: string): void; } export declare class NovoFormGroup extends FormGroup { readonly value: any; }