We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6add1d commit e332dd6Copy full SHA for e332dd6
1 file changed
packages/multiple-select-vanilla/README.md
@@ -30,13 +30,18 @@ import { multipleSelect } from 'multiple-select-vanilla';
30
const ms = multipleSelect('.multiple-select');
31
```
32
33
-##### 2. or from a `data` array or object
+#### 2. or from a `data` array of string/numbers or text/value pair (object array)
34
35
```ts
36
import { multipleSelect } from 'multiple-select-vanilla';
37
38
+const ms = multipleSelect('.multiple-select', {
39
+ data: ['First', 'Second'] // native string/number/boolean
40
+};
41
+
42
const ms = multipleSelect('.multiple-select', {
43
data: [
44
+ // text/value pair
45
{ text: 'First', value: 1 },
46
{ text: 'Second', value: 2 },
47
{ text: 'Third', value: 3 },
0 commit comments