Merge pull request #14478 from devrelm/devrelm/react-select

[react-select] Add optionClassName to ReactSelectProps
This commit is contained in:
Arthur Ozga
2017-02-07 11:35:00 -08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -1,6 +1,6 @@
// Type definitions for react-select v1.0.0
// Project: https://github.com/JedWatson/react-select
// Definitions by: ESQUIBET Hugo <https://github.com/Hesquibet/>, Gilad Gray <https://github.com/giladgray/>, Izaak Baker <https://github.com/iebaker/>, Tadas Dailyda <https://github.com/skirsdeda/>, Mark Vujevits <https://github.com/vujevits/>
// Definitions by: ESQUIBET Hugo <https://github.com/Hesquibet/>, Gilad Gray <https://github.com/giladgray/>, Izaak Baker <https://github.com/iebaker/>, Tadas Dailyda <https://github.com/skirsdeda/>, Mark Vujevits <https://github.com/vujevits/>, Mike Deverell <https://github.com/devrelm/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
@@ -272,6 +272,10 @@ declare namespace ReactSelectClass {
* @default false
*/
openOnFocus?: boolean;
/**
* className to add to each option component
*/
optionClassName?: string;
/**
* option component to render in dropdown
*/
+1
View File
@@ -99,6 +99,7 @@ class SelectTest extends React.Component<React.Props<{}>, {}> {
className: "test-select",
key: "1",
options: options,
optionClassName: 'test-select-option',
optionRenderer: optionRenderer,
autofocus: true,
autosize: true,