How to use the @pebula/ngrid.PblNgridModule.forRoot function in @pebula/ngrid

To help you get started, we’ve selected a few @pebula/ngrid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shlomiassaf / ngrid / apps / libs / ngrid / demos / src / lib / demos.module.ts View on Github external
{ path: '', pathMatch: 'fullMatch', component: DemoContainerPageComponent, children: [
    { path: '', pathMatch: 'fullMatch', component: AppHomePageComponent },
    { path: 'demos', children:
      [
        { path: 'all-in-one', component: AllInOneGridExampleComponent, data: { title: 'All In One' } },
        { path: 'virtual-scroll-performance', component: GeneralDemoGridExampleComponent, data: { title: 'Demo' } },
      ]
    },
  ]},
];

@NgModule({
  declarations: [ DemoContainerPageComponent, AppHomePageComponent ],
  imports: [
    RouterModule.forChild(ROUTES),
    PblNgridModule.forRoot({
      virtualScroll: {
        wheelMode: 17,
      },
    }, []),
    PblNgridDragModule,
    TableMixDemoModule,
    SharedModule,
  ],
})
export class DemosModule { }