@@ -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 ;
@@ -579,6 +603,7 @@ export class IgxColumnComponent implements AfterContentInit {
579
603
* @memberof IgxColumnComponent
580
604
*/
581
605
@notifyChanges ( true )
606
+ @WatchColumnChanges ( )
582
607
@Input ( )
583
608
public get summaries ( ) : any {
584
609
return this . _summaries ;
@@ -611,6 +636,7 @@ export class IgxColumnComponent implements AfterContentInit {
611
636
* @memberof IgxColumnComponent
612
637
*/
613
638
@notifyChanges ( )
639
+ @WatchColumnChanges ( )
614
640
@Input ( )
615
641
public searchable = true ;
616
642
/**
@@ -714,6 +740,7 @@ export class IgxColumnComponent implements AfterContentInit {
714
740
* @memberof IgxColumnComponent
715
741
*/
716
742
@notifyChanges ( )
743
+ @WatchColumnChanges ( )
717
744
@Input ( 'cellTemplate' )
718
745
get bodyTemplate ( ) : TemplateRef < any > {
719
746
return this . _bodyTemplate ;
@@ -745,6 +772,7 @@ export class IgxColumnComponent implements AfterContentInit {
745
772
* @memberof IgxColumnComponent
746
773
*/
747
774
@notifyChanges ( )
775
+ @WatchColumnChanges ( )
748
776
@Input ( )
749
777
get headerTemplate ( ) : TemplateRef < any > {
750
778
return this . _headerTemplate ;
@@ -777,6 +805,7 @@ export class IgxColumnComponent implements AfterContentInit {
777
805
* @memberof IgxColumnComponent
778
806
*/
779
807
@notifyChanges ( )
808
+ @WatchColumnChanges ( )
780
809
@Input ( 'cellEditorTemplate' )
781
810
get inlineEditorTemplate ( ) : TemplateRef < any > {
782
811
return this . _inlineEditorTemplate ;
@@ -806,6 +835,7 @@ export class IgxColumnComponent implements AfterContentInit {
806
835
* @memberof IgxColumnComponent
807
836
*/
808
837
@notifyChanges ( )
838
+ @WatchColumnChanges ( )
809
839
@Input ( 'filterCellTemplate' )
810
840
get filterCellTemplate ( ) : TemplateRef < any > {
811
841
return this . _filterCellTemplate ;
@@ -1135,7 +1165,8 @@ export class IgxColumnComponent implements AfterContentInit {
1135
1165
@ContentChild ( IgxFilterCellTemplateDirective , { read : IgxFilterCellTemplateDirective , static : false } )
1136
1166
public filterCellTemplateDirective : IgxFilterCellTemplateDirective ;
1137
1167
1138
- constructor ( public gridAPI : GridBaseAPIService < IgxGridBaseDirective & GridType > , public cdr : ChangeDetectorRef ) { }
1168
+ constructor ( public gridAPI : GridBaseAPIService < IgxGridBaseDirective & GridType > , public cdr : ChangeDetectorRef ,
1169
+ public rowIslandAPI : IgxRowIslandAPIService ) { }
1139
1170
1140
1171
/**
1141
1172
* @hidden
0 commit comments