File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export interface RowType {
96
96
parent ?: RowType ;
97
97
hasChildren ?: boolean ;
98
98
treeRow ? : ITreeGridRecord ;
99
- addRowUI ?: any ;
99
+ addRowUI ?: boolean ;
100
100
focused ?: boolean ;
101
101
grid : GridType ;
102
102
onRowSelectorClick ?: ( event : MouseEvent ) => void ;
Original file line number Diff line number Diff line change 1
1
import { IGroupByRecord } from '../data-operations/groupby-record.interface' ;
2
- import { IgxEditRow } from './common/crud.service' ;
2
+ import { IgxAddRow , IgxEditRow } from './common/crud.service' ;
3
3
import { GridInstanceType , GridSummaryCalculationMode , GridSummaryPosition } from './common/enums' ;
4
4
import { IgxGridCell } from './grid-public-cell' ;
5
5
import { IgxSummaryResult } from './summaries/grid-summary' ;
@@ -38,6 +38,19 @@ abstract class BaseRow implements RowType {
38
38
return primaryKey ? data [ primaryKey ] : data ;
39
39
}
40
40
41
+ /**
42
+ * Gets if this represents add row UI
43
+ *
44
+ * ```typescript
45
+ * let isAddRow = row.addRowUI;
46
+ * ```
47
+ */
48
+ public get addRowUI ( ) : boolean {
49
+ return ! ! this . grid . crudService . row &&
50
+ this . grid . crudService . row . getClassName ( ) === IgxAddRow . name &&
51
+ this . grid . crudService . row . id === this . key ;
52
+ }
53
+
41
54
/**
42
55
* The data record that populates the row.
43
56
*
You can’t perform that action at this time.
0 commit comments