Skip to content

Commit d75748e

Browse files
Shailee Mehtabrylie
Shailee Mehta
authored andcommitted
Adding installation and usage commands in readme
1 parent ea3879a commit d75748e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

README.md

+43
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,45 @@
11
# quasar-q-select-group
2+
23
Multi-select component with option groups for the Quasar Framework (Vue.js)
4+
5+
# Installation
6+
7+
`npm i --save q-select-group`
8+
9+
# Usage
10+
11+
```
12+
import QSelectGroup from "q-select-group";
13+
...
14+
components: {
15+
QSelectGroup,
16+
},
17+
...
18+
<q-select-group
19+
:model="value"
20+
@update:model="(v) => $emit('input', v)"
21+
v-bind="$attrs"
22+
v-on="$listeners"
23+
:string-options="options"
24+
/>
25+
```
26+
27+
This component accept all attributes, listeners accepted by Quasar's QSelect component.
28+
29+
Props:
30+
options: Array of list
31+
model: it is the input value. (can also use model.sync)
32+
multiple: Boolean, specifies whether component accepts multiple values
33+
disabled: Boolean, specifies whether component is disabled
34+
35+
# Publish
36+
37+
## Add user to npm
38+
`npm adduser`
39+
40+
## Login and verify
41+
`npm login`
42+
43+
## Publish
44+
`npm run build`
45+
`npm publish`

0 commit comments

Comments
 (0)