ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
27 lines (26 loc) • 1.21 kB
TypeScript
import { IAgLabelParams } from './agAbstractLabel';
import { AgAbstractField, FieldElement } from './agAbstractField';
export interface IInputField extends IAgLabelParams {
value?: any;
width?: number;
}
export declare abstract class AgAbstractInputField<TElement extends FieldElement, TValue, TConfig extends IInputField = IInputField> extends AgAbstractField<TValue, TConfig> {
private readonly inputType;
private readonly displayFieldTag;
protected readonly eLabel: HTMLElement;
protected readonly eWrapper: HTMLElement;
protected readonly eInput: TElement;
constructor(config?: TConfig, className?: string, inputType?: string | null, displayFieldTag?: string);
protected postConstruct(): void;
protected addInputListeners(): void;
private setInputType;
getInputElement(): TElement;
setInputWidth(width: number | 'flex'): this;
setInputName(name: string): this;
getFocusableElement(): HTMLElement;
setMaxLength(length: number): this;
setInputPlaceholder(placeholder?: string | null): this;
setInputAriaLabel(label?: string | null): this;
setDisabled(disabled: boolean): this;
setAutoComplete(value: boolean | string): this;
}