ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
25 lines (24 loc) • 1.38 kB
TypeScript
import type { AgInputFieldParams } from '../interfaces/agFieldParams';
import type { AgAbstractFieldEvent, FieldElement } from './agAbstractField';
import { AgAbstractField } from './agAbstractField';
export type AgAbstractInputFieldEvent = AgAbstractFieldEvent;
export declare abstract class AgAbstractInputField<TElement extends FieldElement, TValue, TConfig extends AgInputFieldParams = AgInputFieldParams, TEventType extends string = AgAbstractInputFieldEvent> extends AgAbstractField<TValue, TConfig, AgAbstractInputFieldEvent | TEventType> {
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?: keyof HTMLElementTagNameMap);
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;
}