-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathButtonGroupConfigGenerator.ts
More file actions
58 lines (49 loc) · 2.02 KB
/
ButtonGroupConfigGenerator.ts
File metadata and controls
58 lines (49 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { IgxButtonGroupModule } from 'igniteui-angular/button-group';
import { IgxButtonModule, IgxRippleModule } from 'igniteui-angular/directives';
import { IgxIconModule } from 'igniteui-angular/icon';
import { IgxRadioModule } from 'igniteui-angular/radio';
import {AppModuleConfig, Config, IConfigGenerator} from 'igniteui-live-editing'
import { BaseAppConfig } from './BaseConfig';
export class ButtonGroupConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
const configs = new Array<Config>();
// button group 1
configs.push(new Config({
component: 'ButtonGroupSample1Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttonGroup/"
}));
// button group 2
configs.push(new Config({
component: 'ButtonGroupSample2Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttonGroup/"
}));
// button group 3
configs.push(new Config({
component: 'ButtonGroupSample3Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttonGroup/"
}));
// button group 4
configs.push(new Config({
component: 'ButtonGroupSampleComponent',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttonGroup/"
}));
// button group 5
configs.push(new Config({
component: 'ButtonGroupSample5Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttonGroup/"
}));
// button group style
configs.push(new Config({
component: 'ButtonGroupStyleComponent',
additionalFiles: ["/src/app/data-entries/buttonGroup/button-group-style/layout.scss"],
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttonGroup/"
}));
return configs;
}
}