Skip to content

Commit dfbd928

Browse files
Add dropdown hierarchical selection samples to live editing (#3217)
1 parent aedfd91 commit dfbd928

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

live-editing/configs/DropDownConfigGenerator.ts

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { HttpClientModule } from '@angular/common/http';
33
import {
44
IgxButtonModule,
5+
IgxChipsModule,
56
IgxDropDownModule,
67
IgxDividerModule,
78
IgxForOfModule,
@@ -13,7 +14,9 @@ import {
1314
IgxPrefixModule,
1415
IgxSuffixModule,
1516
IgxToastModule,
16-
IgxToggleModule
17+
IgxToggleModule,
18+
IgxTreeModule,
19+
IgxTreeGridModule
1720
} from 'igniteui-angular';
1821
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
1922
export class DropDownConfigGenerator implements IConfigGenerator {
@@ -122,6 +125,29 @@ export class DropDownConfigGenerator implements IConfigGenerator {
122125
})
123126
}));
124127

128+
configs.push(new Config({
129+
component: 'DropdownTreeHierarchicalSelectionComponent',
130+
appModuleConfig: new AppModuleConfig({
131+
imports: ['IgxDropDownModule', 'DropdownTreeHierarchicalSelectionComponent',
132+
'IgxButtonModule', 'IgxToggleModule', 'IgxTreeModule', 'IgxChipsModule'],
133+
ngDeclarations: ['DropdownTreeHierarchicalSelectionComponent'],
134+
ngImports: ['IgxDropDownModule', 'IgxButtonModule', 'IgxToggleModule', 'IgxTreeModule', 'IgxChipsModule']
135+
}),
136+
shortenComponentPathBy: '/data-entries/dropdown/'
137+
}));
138+
139+
configs.push(new Config({
140+
component: 'DropdownTreeGridHierarchicalSelectionComponent',
141+
appModuleConfig: new AppModuleConfig({
142+
imports: ['IgxDropDownModule', 'DropdownTreeGridHierarchicalSelectionComponent',
143+
'IgxButtonModule', 'IgxToggleModule', 'IgxTreeGridModule', 'IgxChipsModule'],
144+
ngDeclarations: ['DropdownTreeGridHierarchicalSelectionComponent'],
145+
ngImports: ['IgxDropDownModule', 'IgxButtonModule', 'IgxToggleModule', 'IgxTreeGridModule', 'IgxChipsModule']
146+
}),
147+
shortenComponentPathBy: '/data-entries/dropdown/'
148+
}));
149+
150+
125151
return configs;
126152
}
127153
}

0 commit comments

Comments
 (0)