Update README.md

This commit is contained in:
Josh Johnson 2016-07-01 09:56:33 +01:00 committed by GitHub
parent 4126e912bc
commit ff36cfc721

View file

@ -244,6 +244,11 @@ const choices = new Choices(element, {
}).setValue(['Set value 1', 'Set value 2']).disable();
// Calling a method directly
const choices = new Choices(element, {
addItems: false,
removeItems: false,
});
choices.setValue(['Set value 1', 'Set value 2'])
choices.disable();
```