-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCheckboxConfigGenerator.ts
More file actions
40 lines (33 loc) · 1.32 KB
/
CheckboxConfigGenerator.ts
File metadata and controls
40 lines (33 loc) · 1.32 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
import { IgxCheckboxModule } from 'igniteui-angular/checkbox';
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing'
import { BaseAppConfig } from './BaseConfig';
export class CheckboxConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
const configs = new Array<Config>();
// checkbox sample 2
configs.push(new Config({
component: 'CheckboxSample1Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/checkbox/"
}));
// checkbox sample 2
configs.push(new Config({
component: 'CheckboxSample2Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/checkbox/"
}));
configs.push(new Config({
component: 'CheckboxSample3Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/checkbox/"
}));
// checkbox styling
configs.push(new Config({
component: 'CheckboxStylingComponent',
additionalFiles: ["/src/app/data-entries/checkbox/checkbox-styling/layout.scss"],
appConfig: BaseAppConfig,
shortenComponentPathBy: "/data-entries/checkbox/"
}));
return configs;
}
}