UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

28 lines (27 loc) 1.08 kB
import * as React from 'react'; import { TreeListItem, TreeListProps } from '../TreeList'; export type TreeDropdownProps<T extends TreeListItem<any>> = { placeholder?: string; style?: React.CSSProperties; fieldStyle?: React.CSSProperties; listSizeConstraints?: { minWidth?: number | string; maxWidth?: number | string; minHeight?: number | string; maxHeight?: number | string; }; options: TreeListProps<T>['options']; labelField?: string; primaryKey?: keyof T; value?: any[][] | string[]; defaultValue?: any[][] | string[]; toDisplayValue?: (value: any[][] | string[]) => string; onChange: (value: any[][] | string[]) => void; onMenuOpen?: () => void; onMenuClose?: () => void; onMouseDown?: (e: React.MouseEvent<HTMLDivElement>) => void; resizable?: boolean; clearable?: boolean; }; export declare function toDisplayValueDefault(value: any[][] | string[]): string; export declare function TreeDropdown<T extends TreeListItem<any>>(props: TreeDropdownProps<T>): React.JSX.Element;