UNPKG

@adaptabletools/adaptable

Version:

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

26 lines (25 loc) 966 B
import * as React from 'react'; import { SelectProps } from '../../../components/Select'; export type ValueType = number | string | Date; interface PermittedValuesSelectorProps<Value extends ValueType, IsMulti extends boolean> { isMulti?: IsMulti; columnId: string; value: IsMulti extends true ? Value[] : Value; onChange: (value: IsMulti extends true ? Value[] : Value) => void; onFocus?: () => void; onBlur?: () => void; allowNewValues?: boolean; className?: string; disabled?: boolean; placeholder?: string; size?: SelectProps<Value, IsMulti>['size']; menuPortalTarget?: HTMLElement; loadValues?: (options: { currentSearchValue: string; }) => Promise<{ value: any; label: string; }[]>; } export declare const PermittedValuesSelector: <Value extends ValueType, IsMulti extends boolean = false>(props: PermittedValuesSelectorProps<Value, IsMulti>) => React.JSX.Element; export {};