Skip to content

Commit

Permalink
docs(grids): fix grid config files, #1363 #1417
Browse files Browse the repository at this point in the history
  • Loading branch information
wnvko committed Sep 11, 2019
1 parent c012c0c commit 54b1bb8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 15 deletions.
23 changes: 9 additions & 14 deletions live-editing/configs/GridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,30 +352,25 @@ export class GridConfigGenerator implements IConfigGenerator {

configs.push(new Config({
component: GridSelectionTemplateExcelComponent,
additionalFiles: ["/src/app/grid/services/financialData.ts"],
additionalFiles: ["/src/app/data/customers.ts"],
appModuleConfig: new AppModuleConfig({
imports: [HttpClientModule, IgxAvatarModule, IgxBadgeModule, IgxButtonModule,
IgxGridModule, IgxIconModule, IgxInputGroupModule, IgxProgressBarModule,
IgxRippleModule, IgxSwitchModule, GridSelectionTemplateExcelComponent],
imports: [IgxGridModule, GridSelectionTemplateExcelComponent],
ngDeclarations: [GridSelectionTemplateExcelComponent],
ngImports: [IgxAvatarModule, IgxBadgeModule, IgxButtonModule, IgxGridModule,
IgxIconModule, IgxInputGroupModule, IgxProgressBarModule,
IgxRippleModule, IgxSwitchModule, HttpClientModule],
ngImports: [IgxGridModule],
ngProviders: []
})
}));

configs.push(new Config({
component: GridSelectionTemplateNumbersComponent,
additionalFiles: ["/src/app/grid/services/financialData.ts"],
additionalFiles: [
"/src/app/data/customers.ts",
"src/assets/images/card/avatars/igLogo.png"
],
appModuleConfig: new AppModuleConfig({
imports: [HttpClientModule, IgxAvatarModule, IgxBadgeModule, IgxButtonModule,
IgxGridModule, IgxIconModule, IgxInputGroupModule, IgxProgressBarModule,
IgxRippleModule, IgxSwitchModule, GridSelectionTemplateNumbersComponent],
imports: [IgxCheckboxModule, IgxGridModule, GridSelectionTemplateNumbersComponent],
ngDeclarations: [GridSelectionTemplateNumbersComponent],
ngImports: [IgxAvatarModule, IgxBadgeModule, IgxButtonModule, IgxGridModule,
IgxIconModule, IgxInputGroupModule, IgxProgressBarModule,
IgxRippleModule, IgxSwitchModule, HttpClientModule],
ngImports: [IgxCheckboxModule, IgxGridModule],
ngProviders: []
})
}));
Expand Down
16 changes: 15 additions & 1 deletion live-editing/configs/HierarchicalGridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ import { HierarchicalGridToolbarStyleComponent } from "../../src/app/hierarchica
import { HGridToolbarCustomSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-custom.component";
import { HGridToolbarOptionsSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-options.component";
import { HGridToolbarTitleSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-toolbar/hierarchical-grid-toolbar-title.component";
import { HGridSelectionTemplateNumbersSampleComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-selection-template-numbers/hierarchical-grid-selection-template-numbers.component"
import { RemoteLoDService } from "../../src/app/hierarchical-grid/services/remote-lod.service";
import { RemoteValuesService } from "../../src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/remoteValues.service";
import { AppModuleConfig } from "./core/AppModuleConfig";
import { Config } from "./core/Config";
import { IConfigGenerator } from "./core/IConfigGenerator";
import { HGridStylingComponent } from '../../src/app/hierarchical-grid/hierarchical-grid-styling/hierarchical-grid-styling.component';
import { HGridStylingComponent } from "../../src/app/hierarchical-grid/hierarchical-grid-styling/hierarchical-grid-styling.component";

export class HierarchicalGridConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
Expand Down Expand Up @@ -578,6 +579,19 @@ export class HierarchicalGridConfigGenerator implements IConfigGenerator {
component: HGridStylingComponent
}));

configs.push(new Config({
additionalFiles: [
"/src/app/hierarchical-grid/data.ts",
"src/assets/images/card/avatars/igLogo.png"
],
appModuleConfig: new AppModuleConfig({
imports: [IgxCheckboxModule, IgxHierarchicalGridModule, HGridSelectionTemplateNumbersSampleComponent],
ngDeclarations: [HGridSelectionTemplateNumbersSampleComponent],
ngImports: [IgxCheckboxModule, IgxHierarchicalGridModule]
}),
component: HGridSelectionTemplateNumbersSampleComponent
}));

return configs;
}
}
16 changes: 16 additions & 0 deletions live-editing/configs/TreeGridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import { TreeGridToolbarSample3Component } from "../../src/app/tree-grid/tree-gr
import { TreeGridToolbarSample4Component } from "../../src/app/tree-grid/tree-grid-toolbar-sample-4/tree-grid-toolbar-sample-4.component";
import { TreeGridToolbarStyleComponent } from "../../src/app/tree-grid/tree-grid-toolbar-style/tree-grid-toolbar-style.component";
import { TreeGridVirtualizationSampleComponent } from "../../src/app/tree-grid/tree-grid-virtualization-sample/tree-grid-virtualization-sample.component";
import { TreeGridSelectionTemplateNumbersSampleComponent } from "../../src/app/tree-grid/tree-grid-selection-template-numbers/tree-grid-selection-template-numbers.component";
import { RemoteValuesService } from '../../src/app/tree-grid/tree-grid-excel-style-filtering-load-on-demand/remoteValues.service';
import { AppModuleConfig } from "./core/AppModuleConfig";
import { Config } from "./core/Config";
Expand Down Expand Up @@ -790,6 +791,21 @@ export class TreeGridConfigGenerator implements IConfigGenerator {
})
}));

// TreeGrid Row Selectors Template - Numbers
configs.push(new Config({
additionalFiles: [
"/src/app/tree-grid/data/employees-flat.ts",
"src/assets/images/card/avatars/igLogo.png"
],
appModuleConfig: new AppModuleConfig({
imports: [IgxCheckboxModule, IgxTreeGridModule, TreeGridSelectionTemplateNumbersSampleComponent],
ngDeclarations: [TreeGridSelectionTemplateNumbersSampleComponent],
ngImports: [IgxCheckboxModule, IgxTreeGridModule]
}),
component: TreeGridSelectionTemplateNumbersSampleComponent,
shortenComponentPathBy: "/tree-grid/"
}));

return configs;
}
}

0 comments on commit 54b1bb8

Please sign in to comment.