UNPKG

ag-grid-community

Version:

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

31 lines (30 loc) 2.03 kB
import { AgComponentStub } from '../core/agComponentStub'; import type { AgComponentEvent, AgComponentSelector } from '../interfaces/agComponent'; import type { AgCoreBeanCollection } from '../interfaces/agCoreBeanCollection'; import type { BaseEvents } from '../interfaces/baseEvents'; import type { BaseProperties } from '../interfaces/baseProperties'; import type { IPropertiesService } from '../interfaces/iProperties'; import type { AgElementParams } from '../utils/dom'; import type { AgLabelParams, LabelAlignment } from './agFieldParams'; type AgAbstractLabelEvent = AgComponentEvent; export declare abstract class AgAbstractLabel<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>, TComponentSelectorType extends string, TConfig extends AgLabelParams = AgLabelParams, TEventType extends string = AgAbstractLabelEvent> extends AgComponentStub<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService, TComponentSelectorType, TEventType | AgAbstractLabelEvent> { protected abstract eLabel: HTMLElement; protected readonly config: TConfig; protected labelSeparator: string; protected labelAlignment: LabelAlignment; protected disabled: boolean; private label; constructor(config?: TConfig, template?: string | AgElementParams<TComponentSelectorType>, components?: AgComponentSelector<TComponentSelectorType>[]); postConstruct(): void; protected refreshLabel(): void; setLabelSeparator(labelSeparator: string): this; getLabelId(): string; getLabel(): HTMLElement | string; setLabel(label: HTMLElement | string): this; setLabelAlignment(alignment: LabelAlignment): this; setLabelEllipsis(hasEllipsis: boolean): this; setLabelWidth(width: number | 'flex'): this; setDisabled(disabled: boolean): this; isDisabled(): boolean; } export {};