UNPKG

1.04 kBTypeScriptView Raw
1import React from 'react';
2import { RenderValueProp } from './DropdownListInput';
3import { BaseListboxInputProps, Filterable, PopupWidgetProps, Searchable, WidgetHTMLProps, WidgetProps } from './shared';
4import { DataItem, WidgetHandle } from './types';
5export declare type DropdownHandle = WidgetHandle;
6export interface DropdownProps<TDataItem> extends WidgetProps, WidgetHTMLProps, PopupWidgetProps, Searchable, Filterable<TDataItem>, BaseListboxInputProps<TDataItem> {
7 name?: string;
8 autoFocus?: boolean;
9 autoComplete?: 'on' | 'off';
10 onCreate?: (searchTerm: string) => void;
11 renderValue?: RenderValueProp<TDataItem>;
12}
13declare interface DropdownList {
14 <TDataItem = DataItem>(props: DropdownProps<TDataItem> & React.RefAttributes<DropdownHandle>): React.ReactElement | null;
15 displayName?: string;
16 propTypes?: any;
17}
18/**
19 * A `<select>` replacement for single value lists.
20 * @public
21 */
22declare const DropdownListImpl: DropdownList;
23export default DropdownListImpl;
24//# sourceMappingURL=DropdownList.d.ts.map
\No newline at end of file