@@ -12,6 +12,8 @@ import {
12
12
EventEmitter ,
13
13
} from '@angular/core' ;
14
14
import { notifyChanges } from '../watch-changes' ;
15
+ import { WatchColumnChanges } from '../watch-changes' ;
16
+ import { IgxRowIslandAPIService } from '../hierarchical-grid/row-island-api.service' ;
15
17
import { DataType } from '../../data-operations/data-util' ;
16
18
import { DeprecateProperty } from '../../core/deprecateDecorators' ;
17
19
import {
@@ -81,6 +83,7 @@ export class IgxColumnComponent implements AfterContentInit {
81
83
* @memberof IgxColumnComponent
82
84
*/
83
85
@notifyChanges ( )
86
+ @WatchColumnChanges ( )
84
87
@Input ( )
85
88
public header = '' ;
86
89
/**
@@ -94,6 +97,7 @@ export class IgxColumnComponent implements AfterContentInit {
94
97
* ```
95
98
* @memberof IgxColumnComponent
96
99
*/
100
+ @WatchColumnChanges ( )
97
101
@Input ( )
98
102
public sortable = false ;
99
103
/**
@@ -108,6 +112,7 @@ export class IgxColumnComponent implements AfterContentInit {
108
112
* @memberof IgxColumnComponent
109
113
*/
110
114
@notifyChanges ( true )
115
+ @WatchColumnChanges ( )
111
116
@Input ( )
112
117
groupable = false ;
113
118
/**
@@ -118,6 +123,7 @@ export class IgxColumnComponent implements AfterContentInit {
118
123
* ```
119
124
* @memberof IgxColumnComponent
120
125
*/
126
+ @WatchColumnChanges ( )
121
127
@Input ( )
122
128
get editable ( ) : boolean {
123
129
// Updating the primary key when grid has transactions (incl. row edit)
@@ -160,6 +166,7 @@ export class IgxColumnComponent implements AfterContentInit {
160
166
* @memberof IgxColumnComponent
161
167
*/
162
168
@notifyChanges ( )
169
+ @WatchColumnChanges ( )
163
170
@Input ( )
164
171
public filterable = true ;
165
172
/**
@@ -173,6 +180,7 @@ export class IgxColumnComponent implements AfterContentInit {
173
180
* ```
174
181
* @memberof IgxColumnComponent
175
182
*/
183
+ @WatchColumnChanges ( )
176
184
@Input ( )
177
185
public resizable = false ;
178
186
/**
@@ -183,6 +191,7 @@ export class IgxColumnComponent implements AfterContentInit {
183
191
* @memberof IgxColumnComponent
184
192
*/
185
193
@notifyChanges ( true )
194
+ @WatchColumnChanges ( )
186
195
@Input ( )
187
196
get hasSummary ( ) {
188
197
return this . _hasSummary ;
@@ -210,6 +219,7 @@ export class IgxColumnComponent implements AfterContentInit {
210
219
*@memberof IgxColumnComponent
211
220
*/
212
221
@notifyChanges ( true )
222
+ @WatchColumnChanges ( )
213
223
@Input ( )
214
224
get hidden ( ) : boolean {
215
225
return this . _hidden ;
@@ -257,6 +267,7 @@ export class IgxColumnComponent implements AfterContentInit {
257
267
* @memberof IgxColumnComponent
258
268
*/
259
269
@notifyChanges ( )
270
+ @WatchColumnChanges ( )
260
271
@Input ( )
261
272
disableHiding = false ;
262
273
/**
@@ -267,6 +278,7 @@ export class IgxColumnComponent implements AfterContentInit {
267
278
* @memberof IgxColumnComponent
268
279
*/
269
280
@notifyChanges ( )
281
+ @WatchColumnChanges ( )
270
282
@Input ( )
271
283
disablePinning = false ;
272
284
/**
@@ -280,6 +292,7 @@ export class IgxColumnComponent implements AfterContentInit {
280
292
* ```
281
293
* @memberof IgxColumnComponent
282
294
*/
295
+ @WatchColumnChanges ( )
283
296
@notifyChanges ( )
284
297
@Input ( )
285
298
public movable = false ;
@@ -291,6 +304,7 @@ export class IgxColumnComponent implements AfterContentInit {
291
304
* @memberof IgxColumnComponent
292
305
*/
293
306
@notifyChanges ( true )
307
+ @WatchColumnChanges ( )
294
308
@Input ( )
295
309
public get width ( ) : string {
296
310
return this . widthSetByUser ? this . _width : this . defaultWidth ;
@@ -351,6 +365,7 @@ export class IgxColumnComponent implements AfterContentInit {
351
365
* ```
352
366
* @memberof IgxColumnComponent
353
367
*/
368
+ @WatchColumnChanges ( )
354
369
@Input ( )
355
370
public maxWidth : string ;
356
371
/**
@@ -365,6 +380,7 @@ export class IgxColumnComponent implements AfterContentInit {
365
380
* @memberof IgxColumnComponent
366
381
*/
367
382
@notifyChanges ( )
383
+ @WatchColumnChanges ( )
368
384
@Input ( )
369
385
public set minWidth ( value : string ) {
370
386
const minVal = parseFloat ( value ) ;
@@ -386,6 +402,7 @@ export class IgxColumnComponent implements AfterContentInit {
386
402
* @memberof IgxColumnComponent
387
403
*/
388
404
@notifyChanges ( )
405
+ @WatchColumnChanges ( )
389
406
@Input ( )
390
407
public headerClasses = '' ;
391
408
@@ -400,6 +417,7 @@ export class IgxColumnComponent implements AfterContentInit {
400
417
* @memberof IgxColumnComponent
401
418
*/
402
419
@notifyChanges ( )
420
+ @WatchColumnChanges ( )
403
421
@Input ( )
404
422
public headerGroupClasses = '' ;
405
423
/**
@@ -419,6 +437,7 @@ export class IgxColumnComponent implements AfterContentInit {
419
437
* @memberof IgxColumnComponent
420
438
*/
421
439
@notifyChanges ( )
440
+ @WatchColumnChanges ( )
422
441
@Input ( )
423
442
public cellClasses : any ;
424
443
@@ -440,6 +459,7 @@ export class IgxColumnComponent implements AfterContentInit {
440
459
* @memberof IgxColumnComponent
441
460
*/
442
461
@notifyChanges ( )
462
+ @WatchColumnChanges ( )
443
463
@Input ( )
444
464
cellStyles = null ;
445
465
/**
@@ -473,6 +493,7 @@ export class IgxColumnComponent implements AfterContentInit {
473
493
* @memberof IgxColumnComponent
474
494
*/
475
495
@notifyChanges ( )
496
+ @WatchColumnChanges ( )
476
497
@Input ( )
477
498
formatter : ( value : any ) => any ;
478
499
/**
@@ -486,6 +507,7 @@ export class IgxColumnComponent implements AfterContentInit {
486
507
* ```
487
508
* @memberof IgxColumnComponent
488
509
*/
510
+ @WatchColumnChanges ( )
489
511
@Input ( )
490
512
public filteringIgnoreCase = true ;
491
513
/**
@@ -499,6 +521,7 @@ export class IgxColumnComponent implements AfterContentInit {
499
521
* ```
500
522
* @memberof IgxColumnComponent
501
523
*/
524
+ @WatchColumnChanges ( )
502
525
@Input ( )
503
526
public sortingIgnoreCase = true ;
504
527
/**
@@ -521,6 +544,7 @@ export class IgxColumnComponent implements AfterContentInit {
521
544
* ```
522
545
* @memberof IgxColumnComponent
523
546
*/
547
+ @WatchColumnChanges ( )
524
548
@Input ( )
525
549
public get pinned ( ) : boolean {
526
550
return this . _pinned ;
@@ -580,6 +604,7 @@ export class IgxColumnComponent implements AfterContentInit {
580
604
* @memberof IgxColumnComponent
581
605
*/
582
606
@notifyChanges ( true )
607
+ @WatchColumnChanges ( )
583
608
@Input ( )
584
609
public get summaries ( ) : any {
585
610
return this . _summaries ;
@@ -612,6 +637,7 @@ export class IgxColumnComponent implements AfterContentInit {
612
637
* @memberof IgxColumnComponent
613
638
*/
614
639
@notifyChanges ( )
640
+ @WatchColumnChanges ( )
615
641
@Input ( )
616
642
public searchable = true ;
617
643
/**
@@ -715,6 +741,7 @@ export class IgxColumnComponent implements AfterContentInit {
715
741
* @memberof IgxColumnComponent
716
742
*/
717
743
@notifyChanges ( )
744
+ @WatchColumnChanges ( )
718
745
@Input ( 'cellTemplate' )
719
746
get bodyTemplate ( ) : TemplateRef < any > {
720
747
return this . _bodyTemplate ;
@@ -746,6 +773,7 @@ export class IgxColumnComponent implements AfterContentInit {
746
773
* @memberof IgxColumnComponent
747
774
*/
748
775
@notifyChanges ( )
776
+ @WatchColumnChanges ( )
749
777
@Input ( )
750
778
get headerTemplate ( ) : TemplateRef < any > {
751
779
return this . _headerTemplate ;
@@ -778,6 +806,7 @@ export class IgxColumnComponent implements AfterContentInit {
778
806
* @memberof IgxColumnComponent
779
807
*/
780
808
@notifyChanges ( )
809
+ @WatchColumnChanges ( )
781
810
@Input ( 'cellEditorTemplate' )
782
811
get inlineEditorTemplate ( ) : TemplateRef < any > {
783
812
return this . _inlineEditorTemplate ;
@@ -807,6 +836,7 @@ export class IgxColumnComponent implements AfterContentInit {
807
836
* @memberof IgxColumnComponent
808
837
*/
809
838
@notifyChanges ( )
839
+ @WatchColumnChanges ( )
810
840
@Input ( 'filterCellTemplate' )
811
841
get filterCellTemplate ( ) : TemplateRef < any > {
812
842
return this . _filterCellTemplate ;
@@ -1136,7 +1166,8 @@ export class IgxColumnComponent implements AfterContentInit {
1136
1166
@ContentChild ( IgxFilterCellTemplateDirective , { read : IgxFilterCellTemplateDirective , static : false } )
1137
1167
public filterCellTemplateDirective : IgxFilterCellTemplateDirective ;
1138
1168
1139
- constructor ( public gridAPI : GridBaseAPIService < IgxGridBaseDirective & GridType > , public cdr : ChangeDetectorRef ) { }
1169
+ constructor ( public gridAPI : GridBaseAPIService < IgxGridBaseDirective & GridType > , public cdr : ChangeDetectorRef ,
1170
+ public rowIslandAPI : IgxRowIslandAPIService ) { }
1140
1171
1141
1172
/**
1142
1173
* @hidden
0 commit comments