README.md 933 Bytes
Newer Older
Jerome Chauveau's avatar
init  
Jerome Chauveau committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# zotero-vue-client

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```

23
24
25
## component usage example

```
Jerome Chauveau's avatar
Jerome Chauveau committed
26
<zotero-vue-client default-type="user" default-id="1234" @entry-selected="selectedEntryCallback"/>
27
28
```

Jerome Chauveau's avatar
Jerome Chauveau committed
29
where **default-type** is *"user"* or *"group"* and **default-id** is a *group* or *user* id (https://www.zotero.org/support/dev/web_api/v3/basics)
30
31
32
33

Another example with custom options :

```
34
<zotero-vue-client
Jerome Chauveau's avatar
Jerome Chauveau committed
35
36
    default-type="user"
    default-id="475425" 
37
38
    :options="{
        pageLength: 10,
39
        editableConfig: false
40
      }"
Jerome Chauveau's avatar
Jerome Chauveau committed
41
    @entry-selected="selectedEntryCallback"/>
42
```
43
`selectedEntryCallback` will received the selected entry as argument (in JSON format)
44

Jerome Chauveau's avatar
init  
Jerome Chauveau committed
45
46
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).