@@ -586,7 +587,7 @@ Then you need to import `themes/tailwind.css` to you main component:
Alternatively you can define class names directly by passing them to the `Multiselect` component via `classes` property. When using this approach you don't need to import `tailwind.css`. Here's a default styling for Tailwind CSS (the same included in `tailwind.css`):
-``` vue
+```vue
```
-
JSFiddle - Example #1
+
JSFiddle - Example #1
### Multiselect with object options
-``` vue
+```vue
```
-
JSFiddle - Example #2
+
JSFiddle - Example #2
### Multiselect with disabled options
-``` vue
+```vue
```
-
JSFiddle - Example #3
+
JSFiddle - Example #3
### Multiselect with groups
-``` vue
+```vue
```
-
JSFiddle - Example #4
+
JSFiddle - Example #4
### Tags with search, create and array of objects options
-``` vue
+```vue
```
-
JSFiddle - Example #5
+
JSFiddle - Example #5
### Autocomplete with async options
-``` vue
+```vue
```
-
JSFiddle - Example #6
+
JSFiddle - Example #6
### Tags with async options
-``` vue
+```vue
```
-
JSFiddle - Example #7
+
JSFiddle - Example #7
### Select with custom options slot
-``` vue
+```vue
JSFiddle - Example #8
+JSFiddle - Example #8
### Multiselect with custom label slot
-``` vue
+```vue
JSFiddle - Example #9
+JSFiddle - Example #9
### Tags with custom tags slot
-``` vue
+```vue
```
-JSFiddle - Example #10
+JSFiddle - Example #10
### Async options with default values
When using `resolveOnLoad: false` we can add default values with `object: true` and providing options as objects, containing both `label` and `value` props. This is because option list is not resolved when the component is mounted so Multiselect has no idea of what option labels should be if only plain values were provided.
-``` vue
+```vue
```
-JSFiddle - Example #11
+JSFiddle - Example #11
### Default values that are not among the options using `object: true`
If we want to add default values without having to add them to options list we can use `object: true` and provide them as objects, containing both `label` and `value` props. This is because if a plain value is not among Multiselect options it has no idea of what option label should be.
-``` vue
+```vue
```
-JSFiddle - Example #12
+JSFiddle - Example #12
### Default values that are not among the options using `allowAbsent: true`
If our async option list returns an **array of strings** we can use `allowAbsent: true` to allow value(s) which are not among the option list. The reason why this only works with an array of strings option list is because plain values like `Java` and `JavaScript` will use the same string for label and value.
-``` vue
+```vue
```
-JSFiddle - Example #13
+JSFiddle - Example #13
### Manage created tag asynchronously
Search is restricted by `regex` and tag creation is controlled by `onCreate(option, select$)`.
-``` vue
+```vue
```
-JSFiddle - Example #14
-
+JSFiddle - Example #14
### Load async options from API on open with infinite scroll
Options are not loaded initially, only when the users clicks the dropdown the first time. It also virtualizes the option list with `infinite: true` even large list of options can be loaded.
-``` vue
+```vue
```
-JSFiddle - Example #15
+JSFiddle - Example #15
+
+### Multiselect with localized texts
+
+Options are not loaded initially, only when the users clicks the dropdown the first time. It also virtualizes the option list with `infinite: true` even large list of options can be loaded.
+
+```vue
+
+
+
+
+```
+
+JSFiddle - Example #16
## License