From 734c1529f90868fd7fb3550b39e51fd8f5da7315 Mon Sep 17 00:00:00 2001 From: andrelandgraf Date: Thu, 19 Jul 2018 13:22:25 +0200 Subject: [PATCH] beautify README --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b30f34b..bd8f930 100644 --- a/README.md +++ b/README.md @@ -49,17 +49,17 @@ render() { } }); -return( -
- -
+ return( +
+ +
); ``` -***Properties*** +## Properties -## item ## +***items*** - Required property! - The array of options for the drop down menu.
@@ -67,7 +67,7 @@ return( - key : an id that identifies the item within the array - label: the label that will be shown in the drop down menu -## onSelect ## +***onSelect*** - Required property! - The callback function that will be called if the user selects one item of the drop down menu. @@ -75,7 +75,7 @@ return( - Parameter: (selectedKey) - selectedKey: the Key Property of the item that the user selected -## match ## +***match*** - Pass a match function as stated above for creating your own matching algorithm for the autocomplete functionality. - Parameter: (currentInput, item) @@ -95,7 +95,7 @@ match = (currentInput, item) => { }; ``` -## placeholder ## +***placeholder*** - The placeholder that will be shown inside the input field.