From d8a34ec4e6e28eb6ce8a2eaac76a20e1945b35ae Mon Sep 17 00:00:00 2001 From: Lukas Stuart-Fry Date: Wed, 21 Jun 2017 10:05:35 -0700 Subject: [PATCH] Update README.md to include 'valueComponent' prop (#1803) * Update README.md to include 'valueComponent' prop Thanks to some very helpful feedback I received in this repo (and reading through some issues other users were having) I found there was a valueComponent prop that I could utilize that made my life so much easier. I think it needs to be included in the list of available props in the docs. * Update README.md to include 'valueComponent' prop (edited with suggested changes made) * Minor copy edits of valueComponent description --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f6b3f9e660..18b0731aa9 100644 --- a/README.md +++ b/README.md @@ -400,6 +400,7 @@ function onInputKeyDown(event) { | loadingPlaceholder | string\|node | 'Loading...' | label to prompt for loading search result | | tabSelectsValue | bool | true | whether to select the currently focused value when the `[tab]` key is pressed | | value | any | undefined | initial field value | +| valueComponent | func | | function which returns a custom way to render/manage the value selected `` | | valueKey | string | 'value' | the option property to use for the value | | valueRenderer | func | undefined | function which returns a custom way to render the value selected `function (option) {}` |