File tree 4 files changed +23
-2
lines changed
projects/igniteui-angular/src/lib
core/styles/components/grid
4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 126
126
@extend %igx-grid__tr--drag !optional ;
127
127
}
128
128
129
+ @include e (tr, $m : ' disabled' ) {
130
+ @extend %igx-grid__tr--disabled !optional ;
131
+ }
132
+
129
133
@include e (tr, $m : ' ghost' ) {
130
134
@extend %igx-grid__tr--ghost !optional ;
131
135
}
Original file line number Diff line number Diff line change 1037
1037
opacity : .5 ;
1038
1038
}
1039
1039
1040
+ %igx-grid__tr--disabled {
1041
+ opacity : .5 ;
1042
+ }
1043
+
1040
1044
%grid-row--odd {
1041
1045
background : --var ($theme , ' row-odd-background' );
1042
1046
color : --var ($theme , ' row-odd-text-color' );
Original file line number Diff line number Diff line change @@ -44,6 +44,18 @@ export class IgxTreeGridRowComponent extends IgxRowDirective<IgxTreeGridComponen
44
44
}
45
45
}
46
46
47
+ /**
48
+ * Gets whether the row is pinned.
49
+ *
50
+ * @example
51
+ * ```typescript
52
+ * let pinned = row.pinned;
53
+ * ```
54
+ */
55
+ public get pinned ( ) : boolean {
56
+ return this . grid . isRowInPinnedRecordsStructure ( this . _treeRow ) ;
57
+ }
58
+
47
59
/**
48
60
* Returns a value indicating whether the row component is expanded.
49
61
*
@@ -101,7 +113,8 @@ export class IgxTreeGridRowComponent extends IgxRowDirective<IgxTreeGridComponen
101
113
protected resolveClasses ( ) : string {
102
114
const classes = super . resolveClasses ( ) ;
103
115
const filteredClass = this . treeRow . isFilteredOutParent ? 'igx-grid__tr--filtered' : '' ;
104
- return `${ classes } ${ filteredClass } ` ;
116
+ const pinnedRecordClass = this . pinned ? 'igx-grid__tr--disabled' : '' ;
117
+ return `${ classes } ${ filteredClass } ${ pinnedRecordClass } ` ;
105
118
}
106
119
107
120
/**
Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
566
566
/**
567
567
* @hidden @internal
568
568
*/
569
- private isRowInPinnedRecordsStructure ( rec : ITreeGridRecord ) : boolean {
569
+ public isRowInPinnedRecordsStructure ( rec : ITreeGridRecord ) : boolean {
570
570
let inStructure = false ;
571
571
this . pinnedRecords . forEach ( pinnedRecord => {
572
572
if ( JSON . stringify ( pinnedRecord . data ) === JSON . stringify ( rec . data ) ) {
You can’t perform that action at this time.
0 commit comments