Skip to content

Commit b8166f1

Browse files
authored
Merge branch 'vnext' into code-formatting
2 parents 8d2981c + 3e5326a commit b8166f1

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/app/tree-grid/tree-grid-rowStyles-sample/tree-grid-rowStyle.component.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ export class TreeGridRowStylesComponent implements OnInit {
1313
public data: IEmployee[];
1414
public columns: any[];
1515

16-
public background = (row: RowType) => row.data.data['Title'] === 'CEO' ? '#6c757d' :
17-
row.data.data['Title'].includes('President') ? '#adb5bd' : row.data.data['Title'].includes('Director') ? '#ced4da' :
18-
row.data.data['Title'].includes('Manager') ? '#dee2e6' :
19-
row.data.data['Title'].includes('Lead') ? '#e9ecef' :
20-
row.data.data['Title'].includes('Senior') ? '#f8f9fa' : null;
16+
public background = (row: RowType) => row.data['Title'] === 'CEO' ? '#6c757d' :
17+
row.data['Title'].includes('President') ? '#adb5bd' :
18+
row.data['Title'].includes('Director') ? '#ced4da' :
19+
row.data['Title'].includes('Manager') ? '#dee2e6' :
20+
row.data['Title'].includes('Lead') ? '#e9ecef' :
21+
row.data['Title'].includes('Senior') ? '#f8f9fa' : null;
2122

2223
// eslint-disable-next-line @typescript-eslint/member-ordering
2324
public rowStyles = {
2425
background: this.background,
25-
'border-left': (row: RowType) => row.data.data['Title'] === 'CEO' || row.data.data['Title'].includes('President') ?
26+
'border-left': (row: RowType) => row.data['Title'] === 'CEO' || row.data['Title'].includes('President') ?
2627
'2px solid' : null,
27-
'border-color': (row: RowType) => row.data.data['Title'] === 'CEO' ? '#495057' : null,
28-
color: (row: RowType) => row.data.data['Title'] === 'CEO' ? '#fff' : null
28+
'border-color': (row: RowType) => row.data['Title'] === 'CEO' ? '#495057' : null,
29+
color: (row: RowType) => row.data['Title'] === 'CEO' ? '#fff' : null
2930
};
3031

3132
public ngOnInit(): void {

0 commit comments

Comments
 (0)