mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 20:25:18 +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.
|
**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
|
### position
|
||||||
|
|
||||||
**Type:** `String` **Default:** `auto`
|
**Type:** `String` **Default:** `auto`
|
||||||
|
|
Loading…
Reference in a new issue