Creating a Sidebar Menu Modifier Class

Procedure

  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
  1. 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) {
      }
    }