Optional ReadonlyactiveReadonlyavailableIf the files sidebar can currently be accessed. Registering tabs also works if the sidebar is currently not available.
ReadonlyisThe current open state of the sidebar
Optional ReadonlynodeThe currently opened node in the sidebar
Close the sidebar.
When the sidebar is fully closed the files:sidebar:closed event is emitted,
see also @nextcloud/event-bus.
Get all registered sidebar actions.
If a context is provided only the enabled actions are returned.
Optionalcontext: ISidebarContextThe context
Get all registered sidebar tabs. If a node is passed only the enabled tabs are retrieved.
Optionalcontext: ISidebarContextOpen the sidebar for a specific node.
When the sidebar is fully opened the files:sidebar:opened event is emitted,
see also @nextcloud/event-bus.
The node to open the sidebar for
Optionaltab: stringThe tab to open by default
Register a new sidebar tab. This should ideally be done on app initialization using Nextcloud init scripts.
The sidebar tab to register
Set the active sidebar tab
The tab to set active
The currently active sidebar tab id