Skip to content

Commit

Permalink
Documentation updates from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Rotherham <work@colinr.com>
  • Loading branch information
romaricpascal and colinrotherham authored Jan 29, 2024
1 parent 375bd0b commit 418c651
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,17 @@ function suggest (query, populateResults) {

Type: `string`

Adds custom html classes to the `input` elements of the component:
- the one the user types in
- the one used to display the completion hint when `autoselect` is set to `true` (see `hintClasses` hereafter)
Adds custom html classes to the generated `input` element.

If [`autoselect`](#autoselect) is set to `true`, the option [`hintClasses`](#hintClasses) can be configured separately or it will default to the `inputClasses` value.

#### `hintClasses` (default: `null`)

Type: `string`

Adds custom html classes to the hint element that appears when what the user typed matches the start of a suggestion (and `autoselect` is set to `true`).
Adds custom html classes to the additional `input` element used for suggestion hints.

If `inputClasses` is set, it'll default to the value of `inputClasses`. You can set an empty string `''` to prevent the `inputClasses` being set on the hint as well.
If [`autoselect`](#autoselect) is set to `true`, the option [`inputClasses`](#inputClasses) will be used as the default value unless `hintClasses` is set to an empty string `''`.

#### `menuAttributes` (default: `{}`)

Expand Down

0 comments on commit 418c651

Please sign in to comment.