mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-01 13:32:23 +02:00
Update README.md
This commit is contained in:
parent
44d65ae580
commit
4935d279f8
|
@ -448,7 +448,6 @@ const valueArray = example.getValue(); // returns [{ active: true, choiceId: 1,
|
||||||
const example = new Choices(element);
|
const example = new Choices(element);
|
||||||
|
|
||||||
// via an array of objects
|
// via an array of objects
|
||||||
|
|
||||||
example.setValue([
|
example.setValue([
|
||||||
{value: 'One', label: 'Label One'},
|
{value: 'One', label: 'Label One'},
|
||||||
{value: 'Two', label: 'Label Two'},
|
{value: 'Two', label: 'Label Two'},
|
||||||
|
@ -456,7 +455,6 @@ example.setValue([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// or via an array of strings
|
// or via an array of strings
|
||||||
|
|
||||||
example.setValue(['Four','Five','Six']);
|
example.setValue(['Four','Five','Six']);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue