File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
projects/igniteui-angular/src/lib Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 378
378
@extend %igx-grid__tree-loading-indicator !optional ;
379
379
}
380
380
381
+ @include e (td, $m : new ) {
382
+ @extend %igx-grid__td--new !optional ;
383
+ }
384
+
381
385
@include e (td, $m : edited) {
382
386
@extend %igx-grid__td--edited !optional ;
383
387
}
Original file line number Diff line number Diff line change 50
50
/// @param {Color} $cell-selected-text-color [null] - The selected cell text color.
51
51
/// @param {Color} $cell-editing-background [null] - The background color of the cell being edited.
52
52
/// @param {Color} $cell-edited-value-color [null] - The text color of a cell that has been edited.
53
+ /// @param {Color} $cell-new-color [null] - The text color of a new, unedited cell. Used when adding new row in a grid.
53
54
/// @param {Color} $cell-disabled-color [null] - The text color of a disabled cell.
54
55
///
55
56
/// @param {Color} $edit-mode-color [null] - The color applied around the row when in editing mode.
161
162
$cell-selected-text-color : null ,
162
163
$cell-editing-background : null ,
163
164
$cell-edited-value-color : null ,
165
+ $cell-new-color : null ,
164
166
$cell-disabled-color : null ,
165
167
166
168
$edit-mode-color : null ,
506
508
edit- mode- color: $edit-mode-color ,
507
509
edited- row- indicator: $edited-row-indicator ,
508
510
cell- edited- value- color: $cell-edited-value-color ,
511
+ cell- new- color: $cell-new-color ,
509
512
510
513
cell- disabled- color: $cell-disabled-color ,
511
514
1366
1369
background : --var ($theme , ' row-selected-cell-background' );
1367
1370
}
1368
1371
1372
+ %igx-grid__td--new {
1373
+ %grid-cell-text {
1374
+ color : --var ($theme , ' cell-new-color' );
1375
+ }
1376
+ }
1377
+
1369
1378
%igx-grid__td--edited {
1370
1379
%grid-cell-text {
1371
1380
font-style : italic ;
Original file line number Diff line number Diff line change 46
46
/// @prop {Color} cell-editing-background [#fff] - The editing background color of a cell.
47
47
/// @prop {Map} edit-mode-color [igx-color: ('secondary', 500)] - The text color in edit mode.
48
48
/// @prop {Map} edited-row-indicator [igx-color: ('grays', 400)] - The indicator's color of edited row.
49
+ /// @prop {Map} cell-new-color [igx-color: ('grays', 500)] - The text color of a new, unedited cell. Used when adding new row in a grid.
49
50
/// @prop {Map} cell-edited-value-color [igx-color: ('grays', 600)] - The color of cell edited value.
50
51
/// @prop {Map} cell-disabled-color [igx-color: ('grays', 500)] - The text color of a disabled cell.
51
52
/// @prop {Map} resize-line-color [igx-color: ('secondary', 500)] - The table header resize line color.
@@ -230,6 +231,10 @@ $_light-grid: extend(
230
231
igx- color: (' grays' , 400 )
231
232
),
232
233
234
+ cell- new- color: (
235
+ igx- color: (' grays' , 500 )
236
+ ),
237
+
233
238
cell- edited- value- color: (
234
239
igx- color: (' grays' , 600 )
235
240
),
Original file line number Diff line number Diff line change 93
93
[class.igx-grid__td--pinned] ="col.pinned "
94
94
[class.igx-grid__td--number] ="col.dataType === 'number' "
95
95
[class.igx-grid__td--bool] ="col.dataType === 'boolean' "
96
+ [class.igx-grid__td--new] ="addRow && !rowData[col.field] "
96
97
[ngClass] ="col.cellClasses | igxCellStyleClasses:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
97
98
[ngStyle] ="col.cellStyles | igxCellStyles:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
98
99
[editMode] ="col.editable && crudService.isInEditMode(index, col.index) "
159
160
[attr.aria-describedby] ="gridID + '_' + col.field | igxStringReplace:'.':'_' "
160
161
[class.igx-grid__td--pinned] ="col.pinned "
161
162
[class.igx-grid__td--number] ="col.dataType === 'number' "
163
+ [class.igx-grid__td--new] ="addRow && !rowData[col.field] "
162
164
[ngClass] ="col.cellClasses | igxCellStyleClasses:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
163
165
[ngStyle] ="col.cellStyles | igxCellStyles:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
164
166
[editMode] ="col.editable && crudService.isInEditMode(index, col.index) "
You can’t perform that action at this time.
0 commit comments