Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
mskocik committed Feb 21, 2022
1 parent 18c96d1 commit 69f825e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ name | string | `null` | create `<select>`, usable fo
inputId | string | `null` | allow targeting input using a html label.
creatable | bool | `false` | Allow creating new item(s)
creatablePrefix | string | `*` | Prefix marking new item
allowEditing | bool | `false` | When pressing `Backspace` switch to edit mode instead of removing newly created item
allowEditing | bool | `false` | When pressing `Backspace` switch to edit mode instead of removing newly created item. **NOTE** intended to be used with `creatable` property
keepCreated | bool | `true` | Switch whether to add newly created option to option list or not
delimiter | string | `,` | split inserted text when pasting to create multiple items
createFilter | function | `null` | Function, that transform input string to custom value. It can serve as a filter, if value is valid or not. If you want to dismiss entered value, function should return `''` (empty string). By default all input string is trimmed and all multiple spaces are removed
createFilter | function | `null` | Function, that transform input string to custom value. It can serve as a filter, if value is valid or not. If you want to dismiss entered value, function should return `''` (empty string). By default all input string is trimmed and all multiple spaces are removed. Function notation:<br>`createFilter(inputValue: string, dropdownOptions: array): string`
fetch | string\|function | `null` | Check "remote datasource" section for more details
fetchMode | string | `auto` | When set to `init` options are fetched only when mounted, when searching it search in downloaded dataset
fetchCallback | function | `null` | optional fetch callback
Expand Down
6 changes: 4 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ <h4 id="options">Options</h4>
<td>allowEditing</td>
<td>bool</td>
<td><code>false</code></td>
<td>When pressing <code>Backspace</code> switch to edit mode instead of removing newly created item</td>
<td>When pressing <code>Backspace</code> switch to edit mode instead of removing newly created item. <b>NOTE:</b> intended to be used with <code>creatable</code> property.</td>
</tr>
<tr>
<td>keepCreated</td>
Expand All @@ -801,7 +801,9 @@ <h4 id="options">Options</h4>
<td><code>null</code></td>
<td>Function, that transform input string to custom value. It can serve as a filter, if value is valid or not.
If you want to dismiss entered value, function should return <code>''</code> (empty string). By default
all input string is trimmed and all multiple spaces are removed.
all input string is trimmed and all multiple spaces are removed. Function notation:
<br>
<code>createFilter(inputValue: string, dropdownOptions: array): string</code>
</td>
</tr>
<tr>
Expand Down

0 comments on commit 69f825e

Please sign in to comment.