Skip to content

Commit 85db3f2

Browse files
maon-fpFabian Pfannes
and
Fabian Pfannes
authored
docs(API): add minLength option (#789)
**What changes did you make?** Added `minLength` option to API docs. Co-authored-by: Fabian Pfannes <fp@maon.eu>
1 parent abc8387 commit 85db3f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/API.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ isInvalid | boolean | false | Adds the `is-invalid` classname to the `form-contr
4848
isLoading | boolean | false | Indicate whether an asynchronous data fetch is happening.
4949
isValid | boolean | false | Adds the `is-valid` classname to the `form-control`. Only affects Bootstrap 4.
5050
labelKey | string \| function | `'label'` | See full documentation in the [Rendering section](Rendering.md#labelkey-string--function).
51+
minLength | number | 0 | Minimum user input before displaying results.
5152
onChange | function | | Invoked when the set of selections changes (ie: an item is added or removed). For consistency, `selected` is always an array of selections, even if multi-selection is not enabled. <br><br><pre>`(selected: Array<Object\|string>) => void`</pre>
5253
onInputChange | function | | Invoked when the input value changes. Receives the string value of the input (`text`), as well as the original event. <br><br><pre>`(text: string, event: Event) => void`</pre>
5354
onBlur, onFocus, onKeyDown | function | | As with a normal text input, these are called when the typeahead input has blur, focus, or keydown events. <br><br><pre>`(event: Event) => void`</pre>

0 commit comments

Comments
 (0)