Creating a Sidebar Menu Modifier Class

Prev Next
  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
    Plain text
  1. Create the SidebarMenuModifier builder class, which receives the NavVis IVION Frontend as a parameter:

    // SidebarMenuModifier.ts
    import {ApiInterface} from "@navvis/ivion";
    
    export class SidebarMenuModifier {
      constructor(private ivApi: ApiInterface) {
      }
    }
    Plain text