@@ -20,7 +20,8 @@ import {
20
20
AfterContentInit ,
21
21
Optional ,
22
22
OnInit ,
23
- OnDestroy
23
+ OnDestroy ,
24
+ ContentChild
24
25
} from '@angular/core' ;
25
26
import { IgxGridBaseComponent , IgxGridTransaction } from '../grid-base.component' ;
26
27
import { GridBaseAPIService } from '../api.service' ;
@@ -41,6 +42,7 @@ import { IgxGridSelectionService, IgxGridCRUDService } from '../../core/grid-sel
41
42
import { IgxOverlayService } from '../../services/index' ;
42
43
import { IgxColumnResizingService } from '../grid-column-resizing.service' ;
43
44
import { IgxForOfSyncService } from '../../directives/for-of/for_of.sync.service' ;
45
+ import { IgxDragIndicatorIconDirective } from '../row-drag.directive' ;
44
46
45
47
let NEXT_ID = 0 ;
46
48
@@ -233,6 +235,27 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseCompone
233
235
@ContentChildren ( IgxRowIslandComponent , { read : IgxRowIslandComponent , descendants : true } )
234
236
public allLayoutList : QueryList < IgxRowIslandComponent > ;
235
237
238
+ /**
239
+ * The custom template, if any, that should be used when rendering the row drag indicator icon
240
+ *
241
+ * ```typescript
242
+ * // Set in typescript
243
+ * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
244
+ * myComponent.dragIndicatorIconTemplate = myCustomTemplate;
245
+ * ```
246
+ * ```html
247
+ * <!-- Set in markup -->
248
+ * <igx-grid #grid>
249
+ * ...
250
+ * <ng-template igxDragIndicatorIcon>
251
+ * <igx-icon fontSet="material">info</igx-icon>
252
+ * </ng-template>
253
+ * </igx-grid>
254
+ * ```
255
+ */
256
+ @ContentChild ( IgxDragIndicatorIconDirective , { read : TemplateRef } )
257
+ public dragIndicatorIconTemplate : TemplateRef < any > = null ;
258
+
236
259
@ViewChild ( 'hierarchical_record_template' , { read : TemplateRef } )
237
260
protected hierarchicalRecordTemplate : TemplateRef < any > ;
238
261
0 commit comments