@@ -47,10 +47,10 @@ public headerTemplate = (ctx: IgcCellTemplateContext) => {
47
47
```
48
48
49
49
``` tsx
50
- function headerTemplate(ctx : IgrCellTemplateContext ) {
50
+ const headerTemplate = (ctx : IgrCellTemplateContext ) => {
51
51
return (
52
52
<>
53
- <IgrIcon draggable = " false" onClick = { onClick } ></IgrIcon >
53
+ <IgrIcon draggable = { false } onClick = { onClick } ></IgrIcon >
54
54
</>
55
55
);
56
56
}
@@ -85,7 +85,7 @@ function headerTemplate(ctx: IgrCellTemplateContext) {
85
85
86
86
<!-- React -->
87
87
``` tsx
88
- < {ComponentSelector } moving = " true" >< / {ComponentSelector }>
88
+ < {ComponentSelector } moving = { true } >< / {ComponentSelector }>
89
89
```
90
90
<!-- end: React -->
91
91
@@ -120,9 +120,9 @@ function headerTemplate(ctx: IgrCellTemplateContext) {
120
120
121
121
<!-- React -->
122
122
``` tsx
123
- < {ComponentSelector } moving = " true" >
123
+ < {ComponentSelector } moving = { true } >
124
124
...
125
- < {RowIslandSelector } moving = " true" >< / {RowIslandSelector }>
125
+ < {RowIslandSelector } moving = { true } >< / {RowIslandSelector }>
126
126
< / {ComponentSelector }>
127
127
```
128
128
<!-- end: React -->
@@ -212,15 +212,15 @@ public onColumnMovingEnd(event) {
212
212
213
213
<!-- ComponentStart: Grid, HierarchicalGrid -->
214
214
``` tsx
215
- function onColumnMovingEnd( grid : IgrGridBaseDirective , event : IgrColumnMovingEventArgs ) {
215
+ const onColumnMovingEnd = ( event : IgrColumnMovingEndEventArgs ) => {
216
216
if (event .detail .source .field === " Category" && event .detail .target .field === " Change On Year(%)" ) {
217
217
event .detail .cancel = true ;
218
218
}
219
219
}
220
220
221
- < {ComponentSelector } autoGenerate = " false" moving = " true" data = {data } columnMovingEnd = {onColumnMovingEnd }>
221
+ < {ComponentSelector } autoGenerate = { false } moving = { true } data = {data } onColumnMovingEnd = {onColumnMovingEnd }>
222
222
<IgrColumn field = " Category" ></IgrColumn >
223
- <IgrColumn field = " Change On Year(%)" dataType = " Number " ></IgrColumn >
223
+ <IgrColumn field = " Change On Year(%)" dataType = " number " ></IgrColumn >
224
224
< / {ComponentSelector }>
225
225
```
226
226
<!-- ComponentEnd: Grid, HierarchicalGrid -->
0 commit comments