UNPKG

991 BTypeScriptView Raw
1import { AgAbstractLabel, IAgLabel } from './agAbstractLabel';
2export declare type FieldElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
3export declare abstract class AgAbstractField<TValue, TConfig extends IAgLabel = IAgLabel> extends AgAbstractLabel<TConfig> {
4 protected readonly className?: string | undefined;
5 static EVENT_CHANGED: string;
6 protected previousValue: TValue | null | undefined;
7 protected value: TValue | null | undefined;
8 protected disabled: boolean;
9 constructor(config?: TConfig, template?: string, className?: string | undefined);
10 protected postConstruct(): void;
11 onValueChange(callbackFn: (newValue?: TValue | null) => void): this;
12 getWidth(): number;
13 setWidth(width: number): this;
14 getPreviousValue(): TValue | null | undefined;
15 getValue(): TValue | null | undefined;
16 setValue(value?: TValue | null, silent?: boolean): this;
17 setDisabled(disabled: boolean): this;
18 isDisabled(): boolean;
19}