mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-21 06:56:34 +02:00
Update README.md
This commit is contained in:
parent
4126e912bc
commit
ff36cfc721
|
@ -244,6 +244,11 @@ const choices = new Choices(element, {
|
||||||
}).setValue(['Set value 1', 'Set value 2']).disable();
|
}).setValue(['Set value 1', 'Set value 2']).disable();
|
||||||
|
|
||||||
// Calling a method directly
|
// Calling a method directly
|
||||||
|
const choices = new Choices(element, {
|
||||||
|
addItems: false,
|
||||||
|
removeItems: false,
|
||||||
|
});
|
||||||
|
|
||||||
choices.setValue(['Set value 1', 'Set value 2'])
|
choices.setValue(['Set value 1', 'Set value 2'])
|
||||||
choices.disable();
|
choices.disable();
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue