Optional ReadonlyactiveReadonlyavailableIf the files sidebar can currently be accessed, meaning it is rendered on the current page either by the files app or by an app rendering the sidebar within its own app. 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: ISidebarContext
The context
Get all registered sidebar tabs. If a node is passed only the enabled tabs are retrieved.
Optionalcontext: ISidebarContextRender the sidebar into an element of the current app.
The sidebar is rendered into the app content element as soon as the page is loaded, so this is only needed by apps that render the sidebar into a specific element or that set up their own layout after the page was loaded. Calling this again moves an already rendered sidebar into the requested element.
Requires the app to request the sidebar for the current page,
by dispatching the OCA\Files\Event\LoadSidebar event while rendering it.
Within the files app the sidebar is part of the app layout, so this does nothing.
The element to render the sidebar into
Open 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: string
The tab to open by default
Register a new sidebar action.
The action to register
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
Render the sidebar as a fullscreen overlay of the current page.
Whether to render the sidebar fullscreen
The currently active sidebar tab id