UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

38 lines (37 loc) 1.33 kB
import type { AgIconName } from 'ag-charts-types'; import { type AttributeSet, type InputAttributeSet } from '../util/attributeUtil'; type LabelAndIcon = { label: string; icon?: AgIconName; }; type IconOnly = { label?: never; icon: AgIconName; altText: string; }; export type LabelIcon = LabelAndIcon | IconOnly; export type ButtonOptions = LabelIcon & { onPress: (event: MouseEvent) => void; }; export declare function createButton(options: ButtonOptions, attrs?: AttributeSet): HTMLButtonElement; export interface CheckboxOptions { checked: boolean; onChange: (checked: boolean, event: Event) => void; } export declare function createCheckbox(options: CheckboxOptions, attrs?: AttributeSet): HTMLInputElement; export interface SelectOptions { options: Array<{ label: string; value: string; }>; value: string; onChange: (value: string, event: Event) => void; } export declare function createSelect(options: SelectOptions, attrs?: AttributeSet): HTMLSelectElement; export interface TextAreaOptions { value: string; onChange: (value: string, event: Event) => void; } export declare function createTextArea(options: TextAreaOptions, attrs?: InputAttributeSet): HTMLTextAreaElement; export declare function createIcon(icon?: AgIconName): HTMLSpanElement; export {};