Skip to content
On this page

NcAppNavigation

Slots

NameDescriptionBindings
default
list
footer

The navigation bar can be open and closed from anywhere in the app using the nextcloud event bus.

Install the event bus package

bash
npm i -S @nextcloud/event-bus

Usage

Open the navigation

js static
import { emit } from "@nextcloud/event-bus";
emit("toggle-navigation", {
  open: true
});

Close the navigation

js static
import { emit } from "@nextcloud/event-bus";
emit("toggle-navigation", {
  open: false
});