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 378378 @extend %igx-grid__tree-loading-indicator !optional ;
379379 }
380380
381+ @include e (td, $m : new ) {
382+ @extend %igx-grid__td--new !optional ;
383+ }
384+
381385 @include e (td, $m : edited) {
382386 @extend %igx-grid__td--edited !optional ;
383387 }
Original file line number Diff line number Diff line change 5050/// @param {Color} $cell-selected-text-color [null] - The selected cell text color.
5151/// @param {Color} $cell-editing-background [null] - The background color of the cell being edited.
5252/// @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.
5354/// @param {Color} $cell-disabled-color [null] - The text color of a disabled cell.
5455///
5556/// @param {Color} $edit-mode-color [null] - The color applied around the row when in editing mode.
161162 $cell-selected-text-color : null ,
162163 $cell-editing-background : null ,
163164 $cell-edited-value-color : null ,
165+ $cell-new-color : null ,
164166 $cell-disabled-color : null ,
165167
166168 $edit-mode-color : null ,
506508 edit- mode- color: $edit-mode-color ,
507509 edited- row- indicator: $edited-row-indicator ,
508510 cell- edited- value- color: $cell-edited-value-color ,
511+ cell- new- color: $cell-new-color ,
509512
510513 cell- disabled- color: $cell-disabled-color ,
511514
13661369 background : --var ($theme , ' row-selected-cell-background' );
13671370 }
13681371
1372+ %igx-grid__td--new {
1373+ %grid-cell-text {
1374+ color : --var ($theme , ' cell-new-color' );
1375+ }
1376+ }
1377+
13691378 %igx-grid__td--edited {
13701379 %grid-cell-text {
13711380 font-style : italic ;
Original file line number Diff line number Diff line change 4646/// @prop {Color} cell-editing-background [#fff] - The editing background color of a cell.
4747/// @prop {Map} edit-mode-color [igx-color: ('secondary', 500)] - The text color in edit mode.
4848/// @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.
4950/// @prop {Map} cell-edited-value-color [igx-color: ('grays', 600)] - The color of cell edited value.
5051/// @prop {Map} cell-disabled-color [igx-color: ('grays', 500)] - The text color of a disabled cell.
5152/// @prop {Map} resize-line-color [igx-color: ('secondary', 500)] - The table header resize line color.
@@ -230,6 +231,10 @@ $_light-grid: extend(
230231 igx- color: (' grays' , 400 )
231232 ),
232233
234+ cell- new- color: (
235+ igx- color: (' grays' , 500 )
236+ ),
237+
233238 cell- edited- value- color: (
234239 igx- color: (' grays' , 600 )
235240 ),
Original file line number Diff line number Diff line change 9393 [class.igx-grid__td--pinned] ="col.pinned "
9494 [class.igx-grid__td--number] ="col.dataType === 'number' "
9595 [class.igx-grid__td--bool] ="col.dataType === 'boolean' "
96+ [class.igx-grid__td--new] ="addRow && !rowData[col.field] "
9697 [ngClass] ="col.cellClasses | igxCellStyleClasses:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
9798 [ngStyle] ="col.cellStyles | igxCellStyles:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
9899 [editMode] ="col.editable && crudService.isInEditMode(index, col.index) "
159160 [attr.aria-describedby] ="gridID + '_' + col.field | igxStringReplace:'.':'_' "
160161 [class.igx-grid__td--pinned] ="col.pinned "
161162 [class.igx-grid__td--number] ="col.dataType === 'number' "
163+ [class.igx-grid__td--new] ="addRow && !rowData[col.field] "
162164 [ngClass] ="col.cellClasses | igxCellStyleClasses:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
163165 [ngStyle] ="col.cellStyles | igxCellStyles:rowData[col.field]:rowData:col.field:viewIndex:grid.pipeTrigger "
164166 [editMode] ="col.editable && crudService.isInEditMode(index, col.index) "
You can’t perform that action at this time.
0 commit comments