Skip to content
Snippets Groups Projects
Commit b4290e82 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

ajout d'un paramètre optionnel : default-query

parent 1cab3a66
Branches
Tags 11.1
No related merge requests found
......@@ -34,6 +34,7 @@ Another example with custom options :
<zotero-vue-client
default-type="user"
default-id="475425"
default-query="1984"
:options="{
pageLength: 10,
editableConfig: false
......
{
"name": "zotero-vue-client",
"version": "0.1.3",
"version": "0.1.4",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......
<template>
<zotero-vue-client :default-type="resourceType" :default-id="groupOrUserId" @entry-selected="selectedEntry"/>
<zotero-vue-client :default-type="resourceType"
:default-id="groupOrUserId"
default-query="1984"
@entry-selected="selectedEntry"/>
</template>
<script>
......
......@@ -67,6 +67,7 @@
export default {
name: 'ZoteroVueClient',
props: {
defaultQuery: String,
defaultId : String,
defaultType : {
type : String,
......@@ -94,8 +95,8 @@
currentPage:1,
pageLength: this.options.pageLength,
nbResults: 0,
textQuery : "",
format : this.options.format
format : this.options.format,
textQuery: this.defaultQuery || ""
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment