mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-11 08:59:38 +01:00
32 lines
925 B
TypeScript
32 lines
925 B
TypeScript
declare module 'react-datalist-input' {
|
|
|
|
import * as React from 'react';
|
|
|
|
export interface DataListInputItem {
|
|
key: string | number;
|
|
label: string;
|
|
}
|
|
|
|
export interface DataListInputProperties {
|
|
items: DataListInputItem[];
|
|
onSelect: (selectedItem: DataListInputItem) => void;
|
|
match?: (currentInput: string, item: DataListInputItem) => boolean;
|
|
placeholder?: string;
|
|
itemClassName?: string;
|
|
activeItemClassName?: string;
|
|
inputClassName?: string;
|
|
dropdownClassName?: string;
|
|
requiredInputLength?: number;
|
|
clearInputOnSelect?: boolean;
|
|
suppressReselect?: boolean;
|
|
dropDownLength?: number;
|
|
initialValue?: string;
|
|
onDropdownOpen?: () => void;
|
|
onDropdownClose?: () => void;
|
|
}
|
|
|
|
export default class DataListInput extends React.Component<DataListInputProperties> {
|
|
|
|
}
|
|
}
|