File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ export interface IPinRowEventArgs extends IBaseEventArgs {
126126 /** The row component instance, that was pinned/unpinned.
127127 * May be undefined if row does not exist in the current visible data.
128128 */
129- row ?: IgxRowDirective < IgxGridBaseDirective & GridType > ;
129+ readonly row ?: IgxRowDirective < IgxGridBaseDirective & GridType > ;
130130 /** The ID of the row, that was pinned/unpinned.
131131 * ID is either the primaryKey value or the data record instance.
132132 */
133- rowID : any ;
133+ readonly rowID : any ;
134134 /** The index at which to pin the row in the pinned rows collection. */
135135 insertAtIndex ?: number ;
136136 /** Whether or noy the row is pinned or unpinned. */
137- isPinned : boolean ;
137+ readonly isPinned : boolean ;
138138}
Original file line number Diff line number Diff line change @@ -2464,8 +2464,11 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
24642464 /**
24652465 * @hidden
24662466 */
2467- public pinnedRecords = [ ] ;
2467+ public get pinnedRecords ( ) {
2468+ return this . _pinnedRecords ;
2469+ }
24682470
2471+ protected _pinnedRecords = [ ] ;
24692472
24702473 /**
24712474 * @hidden
@@ -3289,6 +3292,17 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
32893292 return this . _pinnedVisible ;
32903293 }
32913294
3295+ /**
3296+ * Gets an array of the pinned `IgxRowComponent`s.
3297+ * @example
3298+ * ```typescript
3299+ * const pinnedRow = this.grid.pinnedRows;
3300+ * ```
3301+ */
3302+ get pinnedRows ( ) : IgxGridRowComponent [ ] {
3303+ return this . rowList . filter ( x => x . pinned ) ;
3304+ }
3305+
32923306 /**
32933307 * Gets an array of unpinned `IgxColumnComponent`s.
32943308 * @example
Original file line number Diff line number Diff line change 110110 class ="igx-grid__scroll-on-drag-pinned " [style.left.px] ="pinnedWidth "> </ span >
111111 < ng-template #pinnedRecordsTemplate >
112112 < ng-container *ngFor ="let rowData of pinnedRecords
113- | gridTransaction:id:pipeTrigger
114113 | visibleColumns:hasVisibleColumns
115114 | gridFiltering:filteringExpressionsTree:filterStrategy:advancedFilteringExpressionsTree:id:pipeTrigger:filteringPipeTrigger
116115 | gridSort:sortingExpressions:sortStrategy:id:pipeTrigger
You can’t perform that action at this time.
0 commit comments