ohctechv3/.svn/pristine/02/022870394e558769216aea6f64d8f02926dec2af.svn-base
2024-10-28 15:03:36 +05:30

30 lines
1.1 KiB
Plaintext

import { Component } from "./component";
export type LabelAlignment = 'left' | 'right' | 'top';
export interface AgLabelParams {
label?: HTMLElement | string;
labelWidth?: number | 'flex';
labelSeparator?: string;
labelAlignment?: LabelAlignment;
disabled?: boolean;
}
export declare abstract class AgAbstractLabel<TConfig extends AgLabelParams = AgLabelParams> extends Component {
protected abstract eLabel: HTMLElement;
protected readonly config: TConfig;
protected labelSeparator: string;
protected labelAlignment: LabelAlignment;
protected disabled: boolean;
private label;
constructor(config?: TConfig, template?: string);
protected 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;
}