NcAppNavigation #
Slots #
Name | Description | Bindings |
---|---|---|
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
});