diff --git a/react-select/react-select-0.9.10-tests.tsx b/react-select/react-select-0.9.10-tests.tsx new file mode 100644 index 0000000000..e0a25b2034 --- /dev/null +++ b/react-select/react-select-0.9.10-tests.tsx @@ -0,0 +1,29 @@ + +/// +/// +/// + +import * as React from "react" +import * as ReactDOM from "react-dom" + +import Select from "react-select" + +class SelectTest extends React.Component, {}> { + + render() { + return
+ -
- } + render() { + const options: ReactSelect.Option[] = [{ label: "Foo", value: "bar" }] + return
+ ` tag + */ + name?: string; + /** + * factory to create new options when `allowCreate` is true + * @default false + */ + newOptionCreator?: (input: string) => Option; + /** + * placeholder displayed when there are no matching search results or a falsy value to hide it + * @default "No results found" + */ + noResultsText?: string; + onBlur?: __React.FocusEventHandler; + /** + * whether to clear input on blur or not + * @default true + */ + onBlurResetsInput?: boolean; + onChange?: (newValue: Option | Option[]) => void; + onFocus?: __React.FocusEventHandler; + onInputChange?: (inputValue: string) => void; + onOptionLabelClick?: (value: string, event: Event) => void; + /** + * function which returns a custom way to render the options in the menu + */ + optionRenderer?: () => void; + /** + * array of Select options + * @default false + */ + options?: Array