0.11.2 • Published 9 months ago

@waldbaur/nextcloud-vue-collections v0.11.2

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
9 months ago

Nextcloud Vue component for collaboration collections

Build Status npm last version Dependabot status irc

Provides a vue component for Nextcloud projects introduced in Nextcloud 16 to be integrated in apps. Projects is naming for user-facing elements, while collections is used internally since it was renamed afterwards.

Installation

npm install --save nextcloud-vue-collections

Usage

This library requires your app to have the following dependencies installed:

  • vue 2.6
  • vuex 3.1
  • nextcloud-vue 0.7.0
  • nextcloud-axios 0.1.2
  • v-tooltip 2.0.0
  • v-click-outside 1.0.7

After that you can use the collection list component like this:

<template>
	<collection-list 
		v-if="resourceId" 
		type="myresourcetype" 
		:id="resourceId" 
		:name="resourceName" 
	/>
</template>

<script>
import { CollectionList } from 'nextcloud-vue-collections'

export default {
    name: 'CollectionsView',
    components: {
        CollectionList
    },
    computed: {
        resourceId() {
            return 1
        },
        resourceName() {
            return 'My resource'
        }
    }
}
</script>