mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-22 23:42:16 +02:00
Adding docs.
This commit is contained in:
parent
8ea5c04ce7
commit
a00350d14e
17
README.md
17
README.md
|
@ -372,6 +372,23 @@ Pass an array of objects:
|
|||
|
||||
**Usage:** The maximum amount of search results to show.
|
||||
|
||||
### shadowRoot
|
||||
|
||||
**Type:** Document Element **Default:** null
|
||||
|
||||
**Input types affected:** `select-one`, `select-multiple`
|
||||
|
||||
**Usage:** You can pass along the shadowRoot from your application like so.
|
||||
|
||||
```js
|
||||
var shadowRoot = document
|
||||
.getElementById('wrapper')
|
||||
.attachShadow({ mode: 'open' });
|
||||
var choices = new Choices({
|
||||
shadowRoot: shadowRoot,
|
||||
});
|
||||
```
|
||||
|
||||
### position
|
||||
|
||||
**Type:** `String` **Default:** `auto`
|
||||
|
|
Loading…
Reference in a new issue