@@ -22,7 +22,7 @@ import { IgxColumnResizingService } from '../resizing/resizing.service';
22
22
import { IgxGridSummaryService } from '../summaries/grid-summary.service' ;
23
23
import { IgxGridSelectionService , IgxGridCRUDService } from '../selection/selection.service' ;
24
24
import { IgxForOfSyncService , IgxForOfScrollSyncService } from '../../directives/for-of/for_of.sync.service' ;
25
- import { IgxDragIndicatorIconDirective } from '../row-drag.directive' ;
25
+ import { IgxDragIndicatorIconDirective , IgxDragCustomGhostDirective } from '../row-drag.directive' ;
26
26
import { IgxGridMRLNavigationService } from '../grid-mrl-navigation.service' ;
27
27
import { FilterMode } from '../common/enums' ;
28
28
import { GridType } from '../common/grid.interface' ;
@@ -491,6 +491,27 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
491
491
@ContentChild ( IgxDragIndicatorIconDirective , { read : TemplateRef , static : false } )
492
492
public dragIndicatorIconTemplate : TemplateRef < any > = null ;
493
493
494
+ /**
495
+ * The custom drag ghost, if any, that should be used when rendering the drag ghost
496
+ *
497
+ * ```typescript
498
+ * // Set in typescript
499
+ * const myCustomGhostTemplate: TemplateRef<any> = myComponent.customGhostTemplate;
500
+ * myComponent.dragGhostCustomTemplate = myCustomGhostTemplate;
501
+ * ```
502
+ * ```html
503
+ * <!-- Set in markup -->
504
+ * <igx-grid #grid>
505
+ * ...
506
+ * <ng-template igxDragCustomGhost>
507
+ * <div class="dragGhost">Custom drag ghost!</div>
508
+ * </ng-template>
509
+ * </igx-grid>
510
+ * ```
511
+ */
512
+ @ContentChild ( IgxDragCustomGhostDirective , { read : TemplateRef , static : false } )
513
+ public dragGhostCustomTemplate : TemplateRef < any > = null ;
514
+
494
515
@ViewChildren ( IgxGridGroupByRowComponent , { read : IgxGridGroupByRowComponent } )
495
516
private _groupsRowList : QueryList < IgxGridGroupByRowComponent > ;
496
517
0 commit comments