1 | import React from 'react';
|
2 | import { RenderValueProp } from './DropdownListInput';
|
3 | import { BaseListboxInputProps, Filterable, PopupWidgetProps, Searchable, WidgetHTMLProps, WidgetProps } from './shared';
|
4 | import { DataItem, WidgetHandle } from './types';
|
5 | export declare type DropdownHandle = WidgetHandle;
|
6 | export 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 | }
|
13 | declare interface DropdownList {
|
14 | <TDataItem = DataItem>(props: DropdownProps<TDataItem> & React.RefAttributes<DropdownHandle>): React.ReactElement | null;
|
15 | displayName?: string;
|
16 | propTypes?: any;
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | declare const DropdownListImpl: DropdownList;
|
23 | export default DropdownListImpl;
|
24 |
|
\ | No newline at end of file |