Skip to main content

Creating a Sidebar Menu Modifier Class

Follow these steps to create a sidebar menu modifier class:
  1. In ./src, create a file named SidebarMenuModifier.ts:
    ├── package.json
    ├── src
    │ ├── SidebarMenuModifier.ts <----
    │ ├── image
    │ │ ├── favicon.ico
    │ ├── index.html
    │ ├── index.scss
    │ ├── index.ts
    ├── tsconfig.json
    └── webpack.config.js
  2. Create the SidebarMenuModifier builder class, which receives the NavVis IVION Frontend API as a parameter:
    // SidebarMenuModifier.ts
    import {ApiInterface} from "@navvis/ivion";

    export class SidebarMenuModifier {
    constructor(private ivApi: ApiInterface) {
    }
    }