Folder View extensions
The folder view is one of the possible extension types. Registered folder view can be used to render multiple resources (folders, files, spaces) in the UI.
This is what the FolderViewExtension interface looks like:
interface FolderViewExtension {
id: string
scopes?: ExtensionScope[]
type: 'folderView'
folderView: FolderView // See FolderView section below
}
For id
, type
, and scopes
, please see extension base section in top level docs.
For the folderView object, you have the following configuration options:
name
- The name of the action (not displayed in the UI)label
- The text to be displayed to the user when switching between different FolderView optionsicon
- Object, expecting an iconname
and a correspondingIconFillType
, see https://owncloud.design/#/Design%20Tokens/IconList for available optionsisScrollable
- Optional boolean, determines whether the user can scroll inside the component or it statically fills the viewportcomponent
- The Vue component to render the resources. It should expect a prop of typeResource[]
componentAttrs
- Optional additional configuration for the component mentioned above