Action extensions
Actions are one of the possible extension types. Registered actions get rendered in various places across the UI, depending on their scope and targets.
This is what the ActionExtension interface looks like:
interface ActionExtension {
id: string
type: 'action'
scopes?: ExtensionScope[]
action: Action // Please check the Action section below
}
For id
, type
, and scopes
, please see extension base section in top level docs.
The most important configuration options are:
icon
- The icon to be displayed, can be picked from https://owncloud.design/#/Design%20Tokens/IconListname
- The name of the action (not displayed in the UI)label
- The text to be displayedroute
- The string/route to navigate to, if the nav item should be a<router-link>
handler
- The action to perform upon click, if the nav item should be a<button>
componentType
- Either'button'
or'router-link'
, depending on whether the action should be a link or buttonisEnabled
- Determines whether the action is displayed to the user
Please check the Action
type for a full list of configuration options.