From cf76d953c8c3f1556c70b51dad28ce60fe9b2284 Mon Sep 17 00:00:00 2001 From: Ruben Martinez Jr Date: Sat, 10 Sep 2016 13:03:34 -0700 Subject: [PATCH] Document promptTextCreator property of Creatable. https://github.com/JedWatson/react-select/issues/1202#issuecomment-246130181 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index db0e3c836e..a9e2030ca6 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,7 @@ Property | Type | Description `isValidNewOption` | function | Determines if the current input text represents a valid option. By default any non-empty string will be considered valid. Expected signature: `({ label: string }): boolean` | `newOptionCreator` | function | Factory to create new option. Expected signature: `({ label: string, labelKey: string, valueKey: string }): Object` | `shouldKeyDownEventCreateNewOption` | function | Decides if a keyDown event (eg its `keyCode`) should result in the creation of a new option. ENTER, TAB and comma keys create new options by dfeault. Expected signature: `({ keyCode: number }): boolean` | +`promptTextCreator` | function | Factory for overriding default option creator prompt label. By default it will read 'Create option "{label}"'. Expected signature: `(label: String): String` | ### Filtering options