Creating a Sidebar Menu Modifier Class

Prev Next

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