Skip to content
This repository was archived by the owner on Feb 12, 2020. It is now read-only.

Commit 4d9000e

Browse files
committed
copy tweak
1 parent 0d2a60f commit 4d9000e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,21 @@ import blobSelect from './vue-blobselect.min.js';
6868
Vue.component(blobSelect);
6969
```
7070

71-
The `dist/` folder also includes an example stylesheet and icon for the search bar to help get you started. Of course, you can also write styles from scratch; the generated markup is pretty straight-forward. :)
72-
71+
Aside from the script, you'll need some CSS styles. You can either plug in the default stylesheet from `dist/css/` or take a look at the source in `src/scss/` to roll your own.
7372

7473

7574

7675
### Configuration
7776

78-
While the features and eventual markup of this fork maintain full parity with [blob-select](https://github.com/Blobfolio/blob-select), the configuration for this plugin is handled in a more Vue-appropriate way.
77+
While the features and eventual markup of this fork maintain full parity with [blob-select](https://github.com/Blobfolio/blob-select), the configuration for this plugin is handled in a more Vue-centric way.
78+
79+
The general idea is to throw a `<blob-select />` element on the page, specifying any settings as attributes.
7980

8081
```html
8182
<blob-select v-model="some.model" :any-props="some.value"></blob-select>
8283
```
8384

84-
In case it wasn't obvious, the component has bi-directional `model` support, so you can bind the `<select>` value to any Vue data you want. To treat values numerically, use `v-model.number="foo"` in combination with `value-type='number'`. Otherwise it's strings all the way down.
85+
The component has bi-directional `model` support, so you can bind the `<select>` value to any Vue data you want. To treat values numerically, use `v-model.number="foo"` in combination with `value-type='number'`. Otherwise it's strings all the way down.
8586

8687
The following properties can be set on the component. To set them dynamically (to e.g. Vue data), prefix the field with a `:`, otherwise if passing a literal, just throw it in as any old attribute.
8788

0 commit comments

Comments
 (0)