quill-component-library
Version:
A library for components shared between Quill apps.
51 lines (50 loc) • 1.55 kB
TypeScript
import React from 'react';
interface DropdownInputProps {
options: Array<any>;
className?: string;
disabled?: boolean;
error?: string;
handleCancel?: (event: any) => void;
handleChange?: (event: any) => void;
helperText?: string;
label?: string;
id?: string;
isMulti?: boolean;
isSearchable?: boolean;
onClick?: (event: any) => void;
optionType?: string;
placeholder?: string;
timesSubmitted?: Number;
type?: string;
usesCustomOption?: boolean;
value?: string;
}
interface DropdownInputState {
inactive: boolean;
errorAcknowledged: boolean;
menuIsOpen: boolean;
cursor?: number;
}
export declare class DropdownInput extends React.Component<DropdownInputProps, DropdownInputState> {
private input;
private node;
constructor(props: any);
componentDidMount(): void;
componentDidUpdate(_: any, prevState: any): void;
componentWillReceiveProps(nextProps: any): void;
componentWillUnmount(): void;
handleInputActivation: () => void;
setOptionFocus: () => void;
deactivateInput: () => void;
handleClick: (e: any) => void;
updateCursor: (cursor: any) => void;
onKeyDown: (event: any) => void;
handleKeyDown: (e: any) => void;
handleErrorAcknowledgement: () => void;
renderHelperText(): JSX.Element;
renderErrorText(): JSX.Element;
handleOptionSelection: (e: any) => void;
renderInput(): JSX.Element;
render(): JSX.Element;
}
export {};