-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathButtonConfigGenerator.ts
More file actions
50 lines (42 loc) · 1.8 KB
/
ButtonConfigGenerator.ts
File metadata and controls
50 lines (42 loc) · 1.8 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
import { IgxButtonGroupModule } from 'igniteui-angular/button-group';
import { IgxButtonModule, IgxRippleModule } from 'igniteui-angular/directives';
import { IgxIconModule } from 'igniteui-angular/icon';
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing'
import { BaseAppConfig } from './BaseConfig';
import { ButtonsRoundnessComponent } from '../../src/app/data-entries/buttons/buttons-roundness-sample/buttons-roundness-sample';
export class ButtonConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
const configs = new Array<Config>();
// buttons sample 1
configs.push(new Config({
component: 'ButtonsSample1Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttons/"
}));
// buttons roundness
configs.push(new Config({
component: 'ButtonsDisabledComponent',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttons/"
}));
// buttons display density
configs.push(new Config({
component: 'ButtonsDisplayDensityComponent',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttons/"
}));
configs.push(new Config({
component: 'ButtonsRoundnessComponent',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttons/"
}));
// button style
configs.push(new Config({
component: 'ButtonsStyleComponent',
additionalFiles: ["/src/app/data-entries/buttons/buttons-style/layout.scss"],
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/buttons/"
}));
return configs;
}
}