ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
27 lines (26 loc) • 1.17 kB
TypeScript
import { IAgLabel } from './agAbstractLabel';
import { AgAbstractField, FieldElement } from './agAbstractField';
export interface IInputField extends IAgLabel {
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 refreshLabel(): 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): this;
setInputAriaLabel(label: string): this;
setDisabled(disabled: boolean): this;
}