File tree Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1
- < div class ="sample-column ">
2
- < span > Dimensions:</ span >
1
+ < div class ="sample-flex-row ">
3
2
< igx-combo #combo class ="combo " [itemsMaxHeight] ="250 " (selectionChanging) ="handleChange($event) "
4
- [data] ="dimensions " [displayKey] ="'memberName' " [(ngModel)] ="selected "
5
- placeholder ="Dimension(s) " searchPlaceholder ="Search... ">
3
+ [data] ="dimensions " [displayKey] ="'memberName' " [(ngModel)] ="selected "
4
+ placeholder ="Dimension(s) " searchPlaceholder ="Search... ">
6
5
</ igx-combo >
7
- < h4 > Display Density</ h4 >
8
6
< div class ="density-chooser ">
9
7
< igx-buttongroup >
10
- < button igxButton [disabled] ="grid1.displayDensity === compact "
11
- (click) ="setDensity('compact') "> Compact</ button >
8
+ < button igxButton [disabled] ="grid1.displayDensity === comfortable " (click) ="setDensity('comfortable') "> Comfortable</ button >
12
9
< button igxButton [disabled] ="grid1.displayDensity === cosy " (click) ="setDensity('cosy') "> Cosy</ button >
13
- < button igxButton [disabled] ="grid1.displayDensity === comfortable "
14
- (click) ="setDensity('comfortable') "> Comfortable</ button >
10
+ < button igxButton [disabled] ="grid1.displayDensity === compact " (click) ="setDensity('compact') "> Compact</ button >
15
11
</ igx-buttongroup >
16
12
</ div >
17
- < igx-pivot-grid #grid1 [data] ="origData " [width] ="'100%' " [height] ="'100%' " [pivotConfiguration] ="pivotConfigHierarchy "
18
- (dimensionsChange) ='dimensionChange($event) '> </ igx-pivot-grid >
19
13
</ div >
14
+ < igx-pivot-grid
15
+ #grid1 [data] ="origData "
16
+ [pivotConfiguration] ="pivotConfigHierarchy "
17
+ (dimensionsChange) ='dimensionChange($event) '>
18
+ </ igx-pivot-grid >
19
+
Original file line number Diff line number Diff line change 5
5
}
6
6
7
7
.density-chooser {
8
- margin-bottom : 16px ;
9
8
max-width : 40% ;
10
9
}
11
10
12
11
igx-pivot-grid {
13
12
flex : 1 ;
14
13
}
15
14
15
+ .sample-flex-row {
16
+ align-items : center ;
17
+ display : flex ;
18
+ gap : 16px ;
19
+ margin-bottom : 16px ;
20
+
21
+ > * {
22
+ flex : 1 ;
23
+ }
24
+ }
25
+
16
26
:host ::ng-deep {
17
27
.upFont {
18
28
color : lightgreen ;
You can’t perform that action at this time.
0 commit comments