Skip to content

Commit 1e84e52

Browse files
authored
Add settings section to readme
1 parent 418e72b commit 1e84e52

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ list.addEventListener('combobox-commit', function(event) {
6868

6969
When a label is clicked on, `click` event is fired from both `<label>` and its associated input `label.control`. Since combobox does not know about the control, `combobox-commit` cannot be used as an indicator of the item's selection state.
7070

71+
## Settings
72+
73+
For advanced configuration, the constructor takes an optional third argument. This is a settings object with the following setting:
74+
75+
<dl>
76+
<dt><code>tabInsertsSuggestions: boolean = true</code></dt>
77+
<dd>Control whether the highlighted suggestion is inserted when <kbd>Tab</kbd> is pressed.</dd>
78+
</dl>
79+
7180
## Development
7281

7382
```

0 commit comments

Comments
 (0)