vue-single-select
Advanced tools
Comparing version 1.0.28 to 1.0.29
{ | ||
"name": "vue-single-select", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "serve": "vue-cli-service serve", |
@@ -9,3 +9,3 @@ # vue-single-select | ||
## What It Does | ||
vue-single-select provides a ** simple** component for making long, unwieldy select boxes more friendly, like Chosen for jQuery. | ||
vue-single-select provides a **simple** component for making long, unwieldy select boxes more friendly, like Chosen for jQuery. | ||
@@ -96,2 +96,15 @@ ## How Simple? | ||
#### Specify a custom option label and option value | ||
Here each option refereneces a post title in the **posts** list in data. | ||
The option value references a post id in the same list. Like: | ||
``` | ||
posts: [{title: "ok dude", id: 1}, {title: "awesome dude", id: 2}, ...] | ||
``` | ||
``` | ||
``` | ||
```html | ||
@@ -114,2 +127,10 @@ <vue-single-select | ||
#### Specify a custom option label. | ||
Here the Option Label references a reply the **replies** list in data. | ||
With a format like: | ||
``` | ||
replies: [{reply: "ok dude"}, {reply: "awesome dude"}, ...] | ||
``` | ||
```html | ||
@@ -116,0 +137,0 @@ <vue-single-select |
58374
480