@visualjs/grid
Version:
JavaScript Data Table
21 lines (20 loc) • 705 B
TypeScript
import { CellEditor, CellEditorParams } from '../../grid/cell';
import { Option, BaseOption } from '../../components/renders/SelectionRender';
interface Props {
options?: Record<string, Option>;
defaultOption?: BaseOption;
multiple?: boolean;
}
export declare class SelectionEditor extends CellEditor<Props> {
protected wrapper: HTMLDivElement;
protected options: Record<string, HTMLDivElement>;
protected value: string[];
protected props: Props;
init(params: CellEditorParams<Props>): void;
gui(): HTMLElement;
isPopup(): boolean;
getValue(): any;
setValue(value: any): void;
protected toggleSelect(value: any): void;
}
export default SelectionEditor;