Skip to content
On this page

NcRelatedResourcesPanel

Props

Prop nameDescriptionTypeValuesDefault
providerIdThe provider id implemented with \OCA\RelatedResources\IRelatedResourceProvider::getProviderId()string-null
itemIdThe item id which uniquely identities the e.g. Calendar event, Deck board, file, Talk room, etc.string|number-null
fileInfoOnly used by the files sidebar

File info is passed when registered with OCA.Sharing.ShareTabSections.registerSection()
object-null

Events

Event namePropertiesDescription
has-resourcesEmitted when the resources value changes

Usage

Use this component to display the related resources of a given item.

<template>
	<NcRelatedResourcesPanel provider-id="talk"
		:item-id="conversationId" />
</template>

<script>
export default {
	data() {
		return {
			conversationId: 1,
		}
	},
}
</script>

NcResource

Props

Prop nameDescriptionTypeValuesDefault
iconstring-
titlestring-
subtitlestring-null
tooltipstring-null
urlstring-