How to use the @pebula/ngrid/drag.PblNgridDragModule.withDefaultTemplates 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 / modules / mix-demo / table-mix-demo.module.ts View on Github external
const DECLARATION = [
  CommonTableTemplatesComponent,
  AllInOneGridExampleComponent,
  VirtualScrollPerformanceDemoGridExampleComponent,
  SellersDemoComponent,
];

@NgModule({
  declarations: DECLARATION,
  imports: [
    RouterModule.forChild([]),
    SharedModule,
    MATERIAL, MatRippleModule,
    PblNgridModule.withCommon([ { component: CommonTableTemplatesComponent } ]),
    PblNgridDragModule.withDefaultTemplates(),
    PblNgridTargetEventsModule,
    PblNgridBlockUiModule,
    PblNgridTransposeModule,
    PblNgridDetailRowModule,
    PblNgridStickyModule,
    PblNgridStatePluginModule,
    PblNgridMaterialModule,
    PblNgridOverlayPanelModule,
  ],
  exports: [ SellersDemoComponent, AllInOneGridExampleComponent, VirtualScrollPerformanceDemoGridExampleComponent ], // we need this for detail-row
})
export class TableMixDemoModule { }
github shlomiassaf / ngrid / apps / libs / ngrid / concepts / src / lib / modules / column-concepts / column-concepts.module.ts View on Github external
const ROUTES = [
  { path: 'column-quickthrough', component: ColumnQuickthroughGridExampleComponent, data: { title: 'Quick-through' } },
  { path: 'column-model', component: ColumnModelGridExampleComponent, data: { title: 'Introduction' } },
  { path: 'column-factory', component: ColumnFactoryGridExampleComponent, data: { title: 'Column Factory' } },
  { path: 'column-templates', component: ColumnTemplatesGridExampleComponent, data: { title: 'Column Templates' } },
];

@NgModule({
  declarations: DECLARATION,
  imports: [
    RouterModule.forChild(ROUTES),
    MATERIAL,
    SharedModule,
    PblNgridModule,
    PblNgridTargetEventsModule,
    PblNgridDragModule.withDefaultTemplates(),
  ],
  providers: [ PblNgridRegistryService ],
})
export class ColumnConceptsModule {
  constructor(registry: ExampleGroupRegistryService) {
    registry.registerSubGroupRoutes('columns', ROUTES);
  }
}
github shlomiassaf / ngrid / apps / libs / ngrid / concepts / src / lib / modules / theming-concepts / theming-concepts.module.ts View on Github external
ThemingIntroductionGridExampleComponent,
];

const ROUTES = [
  { path: 'theming-introduction', component: ThemingIntroductionGridExampleComponent, data: { title: 'Introduction' } },
];

@NgModule({
  declarations: DECLARATION,
  imports: [
    RouterModule.forChild(ROUTES),
    MATERIAL,
    SharedModule,
    PblNgridModule,
    PblNgridTargetEventsModule,
    PblNgridDragModule.withDefaultTemplates(),
  ],
  providers: [ PblNgridRegistryService ],
})
export class ThemingConceptsModule {
  constructor(registry: ExampleGroupRegistryService) {
    registry.registerSubGroupRoutes('theming', ROUTES);
  }
}
github shlomiassaf / ngrid / apps / libs / ngrid / features / src / lib / modules / column-features / column-features-demo.module.ts View on Github external
{ path: 'column-sorting', component: ColumnSortingGridExampleComponent, data: { title: 'Column Sorting' } },
  { path: 'cell-edit', component: CellEditGridExampleComponent, data: { title: 'Cell Edit' } },
  { path: 'column-reorder', component: ColumnReorderGridExampleComponent, data: { title: 'Column Reorder' } },
  { path: 'column-resizing', component: ColumnResizingGridExampleComponent, data: { title: 'Column Resizing' } },
  { path: 'switching-column-definitions', component: SwitchingColumnDefinitionsGridExampleComponent, data: { title: 'Switching Column Definitions' } },
];

@NgModule({
  declarations: DECLARATION,
  imports: [
    RouterModule.forChild(ROUTES),
    MATERIAL,
    SharedModule,
    PblNgridModule,
    PblNgridTargetEventsModule,
    PblNgridDragModule.withDefaultTemplates(),
    PblNgridStatePluginModule,
  ],
  providers: [ PblNgridRegistryService ],
})
export class ColumnFeaturesDemoModule {
  constructor(registry: ExampleGroupRegistryService) {
    registry.registerSubGroupRoutes('columns', ROUTES);
  }
}
github shlomiassaf / ngrid / apps / libs / ngrid / concepts / src / lib / modules / grid-concepts / grid-concepts.module.ts View on Github external
const ROUTES = [
  { path: 'grid-layout', component: GridLayoutGridExampleComponent, data: { title: 'Grid Layout' } },
  { path: 'height-and-scrolling', component: GridHeightGridExampleComponent, data: { title: 'Height & Scrolling' } },
  { path: 'the-registry', component: TheRegistryGridExampleComponent, data: { title: 'The Registry' } },
];

@NgModule({
  declarations: DECLARATION,
  imports: [
    RouterModule.forChild(ROUTES),
    MATERIAL,
    SharedModule,
    PblNgridModule,
    PblNgridTargetEventsModule,
    PblNgridDragModule.withDefaultTemplates(),
  ],
  providers: [ PblNgridRegistryService ],
})
export class GridConceptsModule {
  constructor(registry: ExampleGroupRegistryService) {
    registry.registerSubGroupRoutes('grid', ROUTES);
  }
}