Skip to content

Commit a0570ed

Browse files
authored
Merge pull request #1432 from IgniteUI/mpavlov/groupby-styling-sample
Removing some unused code in the GroupBy styling sample
2 parents 3bfee8f + 740ca62 commit a0570ed

File tree

2 files changed

+6
-56
lines changed

2 files changed

+6
-56
lines changed

src/app/grid/grid-groupby-styling/grid-groupby-styling.component.scss

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ $custom-chips-theme: igx-chip-theme(
2424
$hover-text-color: #e7e7e7
2525
);
2626

27-
$custom-checkbox-theme: igx-checkbox-theme(
28-
$fill-color: #ffcd0f
29-
);
30-
3127
/* Palette */
3228

3329
// $black-color: #292826;
@@ -51,6 +47,12 @@ $custom-checkbox-theme: igx-checkbox-theme(
5147
// $cell-active-border-color: igx-color($custom-palette, "secondary", 600)
5248
// );
5349

50+
// $custom-chips-theme: igx-chip-theme(
51+
// $background: igx-color($custom-palette, "primary", 300),
52+
// $text-color: igx-contrast-color($custom-palette, "primary", 500),
53+
// $hover-text-color: igx-contrast-color($custom-palette, "primary", 600)
54+
// );
55+
5456
/* Schema */
5557

5658
// $custom-grid-schema: extend($_light-grid,
@@ -78,49 +80,9 @@ $custom-checkbox-theme: igx-checkbox-theme(
7880
// $schema: $my-custom-schema
7981
// );
8082

81-
.igx-grid__grouparea-connector {
82-
color: #000;
83-
}
84-
85-
.grid-controls {
86-
display: flex;
87-
flex-flow: column nowrap;
88-
justify-content: space-between;
89-
margin: 0 16px 24px;
90-
91-
igx-switch {
92-
margin-top: 24px;
93-
}
94-
95-
}
96-
97-
.grid__wrapper {
98-
margin: 0;
99-
}
100-
101-
.header-icon {
102-
font-size: 1.4em;
103-
width: 1.1em;
104-
height: 1.1em;
105-
float: right;
106-
cursor: pointer;
107-
}
108-
109-
.header {
110-
height: 100%;
111-
}
112-
113-
.igx-grid__th .title {
114-
width: 100%;
115-
cursor: auto;
116-
}
117-
11883
:host {
11984
::ng-deep {
12085
@include igx-grid($custom-theme);
12186
@include igx-chip($custom-chips-theme);
122-
@include igx-checkbox($custom-checkbox-theme);
12387
}
12488
}
125-
126-

src/app/grid/grid-groupby-styling/grid-groupby-styling.component.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,4 @@ export class GridGroupByStyling {
3434
public formatCurrency(value: number) {
3535
return "$" + value.toFixed(2);
3636
}
37-
public isDate(value: any) {
38-
if (value instanceof Date) {
39-
return true;
40-
} else {
41-
return false;
42-
}
43-
}
44-
public calc2017(values: any[]) {
45-
const startDate = new Date("1/1/2017");
46-
const endDate = new Date("12/31/2017");
47-
return values.filter((x) => x.OrderDate >= startDate && x.OrderDate <= endDate).length;
48-
}
4937
}

0 commit comments

Comments
 (0)