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 {
9696 parent ?: RowType ;
9797 hasChildren ?: boolean ;
9898 treeRow ? : ITreeGridRecord ;
99- addRowUI ?: any ;
99+ addRowUI ?: boolean ;
100100 focused ?: boolean ;
101101 grid : GridType ;
102102 onRowSelectorClick ?: ( event : MouseEvent ) => void ;
Original file line number Diff line number Diff line change 11import { IGroupByRecord } from '../data-operations/groupby-record.interface' ;
2- import { IgxEditRow } from './common/crud.service' ;
2+ import { IgxAddRow , IgxEditRow } from './common/crud.service' ;
33import { GridInstanceType , GridSummaryCalculationMode , GridSummaryPosition } from './common/enums' ;
44import { IgxGridCell } from './grid-public-cell' ;
55import { IgxSummaryResult } from './summaries/grid-summary' ;
@@ -38,6 +38,19 @@ abstract class BaseRow implements RowType {
3838 return primaryKey ? data [ primaryKey ] : data ;
3939 }
4040
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+
4154 /**
4255 * The data record that populates the row.
4356 *
You can’t perform that action at this time.
0 commit comments