UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

30 lines (29 loc) 989 B
import type { AgElementParams } from '../utils/dom'; export type LabelAlignment = 'left' | 'right' | 'top'; export interface AgLabelParams { label?: HTMLElement | string; labelWidth?: number | 'flex'; labelSeparator?: string; labelAlignment?: LabelAlignment; disabled?: boolean; labelEllipsis?: boolean; } export interface AgFieldParams extends AgLabelParams { value?: any; width?: number; onValueChange?: (value?: any) => void; ariaLabel?: string | null; } export interface AgInputFieldParams<TComponentSelectorType extends string> extends AgFieldParams { inputName?: string; inputWidth?: number | 'flex'; template?: AgElementParams<TComponentSelectorType>; inputPlaceholder?: string; autoComplete?: boolean; tabIndex?: number; } export interface AgCheckboxParams<TComponentSelectorType extends string> extends AgInputFieldParams<TComponentSelectorType> { readOnly?: boolean; passive?: boolean; name?: string; }