@@ -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 {
@@ -82,6 +84,7 @@ export class IgxColumnComponent implements AfterContentInit {
82
84
* @memberof IgxColumnComponent
83
85
*/
84
86
@notifyChanges ( )
87
+ @WatchColumnChanges ( )
85
88
@Input ( )
86
89
public header = '' ;
87
90
/**
@@ -95,6 +98,7 @@ export class IgxColumnComponent implements AfterContentInit {
95
98
* ```
96
99
* @memberof IgxColumnComponent
97
100
*/
101
+ @WatchColumnChanges ( )
98
102
@Input ( )
99
103
public sortable = false ;
100
104
/**
@@ -109,6 +113,7 @@ export class IgxColumnComponent implements AfterContentInit {
109
113
* @memberof IgxColumnComponent
110
114
*/
111
115
@notifyChanges ( true )
116
+ @WatchColumnChanges ( )
112
117
@Input ( )
113
118
groupable = false ;
114
119
/**
@@ -119,6 +124,7 @@ export class IgxColumnComponent implements AfterContentInit {
119
124
* ```
120
125
* @memberof IgxColumnComponent
121
126
*/
127
+ @WatchColumnChanges ( )
122
128
@Input ( )
123
129
get editable ( ) : boolean {
124
130
// Updating the primary key when grid has transactions (incl. row edit)
@@ -161,6 +167,7 @@ export class IgxColumnComponent implements AfterContentInit {
161
167
* @memberof IgxColumnComponent
162
168
*/
163
169
@notifyChanges ( )
170
+ @WatchColumnChanges ( )
164
171
@Input ( )
165
172
public filterable = true ;
166
173
/**
@@ -174,6 +181,7 @@ export class IgxColumnComponent implements AfterContentInit {
174
181
* ```
175
182
* @memberof IgxColumnComponent
176
183
*/
184
+ @WatchColumnChanges ( )
177
185
@Input ( )
178
186
public resizable = false ;
179
187
/**
@@ -184,6 +192,7 @@ export class IgxColumnComponent implements AfterContentInit {
184
192
* @memberof IgxColumnComponent
185
193
*/
186
194
@notifyChanges ( true )
195
+ @WatchColumnChanges ( )
187
196
@Input ( )
188
197
get hasSummary ( ) {
189
198
return this . _hasSummary ;
@@ -211,6 +220,7 @@ export class IgxColumnComponent implements AfterContentInit {
211
220
*@memberof IgxColumnComponent
212
221
*/
213
222
@notifyChanges ( true )
223
+ @WatchColumnChanges ( )
214
224
@Input ( )
215
225
get hidden ( ) : boolean {
216
226
return this . _hidden ;
@@ -270,6 +280,7 @@ export class IgxColumnComponent implements AfterContentInit {
270
280
* @memberof IgxColumnComponent
271
281
*/
272
282
@notifyChanges ( )
283
+ @WatchColumnChanges ( )
273
284
@Input ( )
274
285
disableHiding = false ;
275
286
/**
@@ -280,6 +291,7 @@ export class IgxColumnComponent implements AfterContentInit {
280
291
* @memberof IgxColumnComponent
281
292
*/
282
293
@notifyChanges ( )
294
+ @WatchColumnChanges ( )
283
295
@Input ( )
284
296
disablePinning = false ;
285
297
/**
@@ -293,6 +305,7 @@ export class IgxColumnComponent implements AfterContentInit {
293
305
* ```
294
306
* @memberof IgxColumnComponent
295
307
*/
308
+ @WatchColumnChanges ( )
296
309
@notifyChanges ( )
297
310
@Input ( )
298
311
public movable = false ;
@@ -304,6 +317,7 @@ export class IgxColumnComponent implements AfterContentInit {
304
317
* @memberof IgxColumnComponent
305
318
*/
306
319
@notifyChanges ( true )
320
+ @WatchColumnChanges ( )
307
321
@Input ( )
308
322
public get width ( ) : string {
309
323
return this . widthSetByUser ? this . _width : this . defaultWidth ;
@@ -364,6 +378,7 @@ export class IgxColumnComponent implements AfterContentInit {
364
378
* ```
365
379
* @memberof IgxColumnComponent
366
380
*/
381
+ @WatchColumnChanges ( )
367
382
@Input ( )
368
383
public maxWidth : string ;
369
384
/**
@@ -378,6 +393,7 @@ export class IgxColumnComponent implements AfterContentInit {
378
393
* @memberof IgxColumnComponent
379
394
*/
380
395
@notifyChanges ( )
396
+ @WatchColumnChanges ( )
381
397
@Input ( )
382
398
public set minWidth ( value : string ) {
383
399
const minVal = parseFloat ( value ) ;
@@ -399,6 +415,7 @@ export class IgxColumnComponent implements AfterContentInit {
399
415
* @memberof IgxColumnComponent
400
416
*/
401
417
@notifyChanges ( )
418
+ @WatchColumnChanges ( )
402
419
@Input ( )
403
420
public headerClasses = '' ;
404
421
@@ -413,6 +430,7 @@ export class IgxColumnComponent implements AfterContentInit {
413
430
* @memberof IgxColumnComponent
414
431
*/
415
432
@notifyChanges ( )
433
+ @WatchColumnChanges ( )
416
434
@Input ( )
417
435
public headerGroupClasses = '' ;
418
436
/**
@@ -432,6 +450,7 @@ export class IgxColumnComponent implements AfterContentInit {
432
450
* @memberof IgxColumnComponent
433
451
*/
434
452
@notifyChanges ( )
453
+ @WatchColumnChanges ( )
435
454
@Input ( )
436
455
public cellClasses : any ;
437
456
@@ -453,6 +472,7 @@ export class IgxColumnComponent implements AfterContentInit {
453
472
* @memberof IgxColumnComponent
454
473
*/
455
474
@notifyChanges ( )
475
+ @WatchColumnChanges ( )
456
476
@Input ( )
457
477
cellStyles = null ;
458
478
/**
@@ -486,6 +506,7 @@ export class IgxColumnComponent implements AfterContentInit {
486
506
* @memberof IgxColumnComponent
487
507
*/
488
508
@notifyChanges ( )
509
+ @WatchColumnChanges ( )
489
510
@Input ( )
490
511
formatter : ( value : any ) => any ;
491
512
/**
@@ -499,6 +520,7 @@ export class IgxColumnComponent implements AfterContentInit {
499
520
* ```
500
521
* @memberof IgxColumnComponent
501
522
*/
523
+ @WatchColumnChanges ( )
502
524
@Input ( )
503
525
public filteringIgnoreCase = true ;
504
526
/**
@@ -512,6 +534,7 @@ export class IgxColumnComponent implements AfterContentInit {
512
534
* ```
513
535
* @memberof IgxColumnComponent
514
536
*/
537
+ @WatchColumnChanges ( )
515
538
@Input ( )
516
539
public sortingIgnoreCase = true ;
517
540
/**
@@ -534,6 +557,7 @@ export class IgxColumnComponent implements AfterContentInit {
534
557
* ```
535
558
* @memberof IgxColumnComponent
536
559
*/
560
+ @WatchColumnChanges ( )
537
561
@Input ( )
538
562
public get pinned ( ) : boolean {
539
563
return this . _pinned ;
@@ -592,6 +616,7 @@ export class IgxColumnComponent implements AfterContentInit {
592
616
* @memberof IgxColumnComponent
593
617
*/
594
618
@notifyChanges ( true )
619
+ @WatchColumnChanges ( )
595
620
@Input ( )
596
621
public get summaries ( ) : any {
597
622
return this . _summaries ;
@@ -624,6 +649,7 @@ export class IgxColumnComponent implements AfterContentInit {
624
649
* @memberof IgxColumnComponent
625
650
*/
626
651
@notifyChanges ( )
652
+ @WatchColumnChanges ( )
627
653
@Input ( )
628
654
public searchable = true ;
629
655
/**
@@ -727,6 +753,7 @@ export class IgxColumnComponent implements AfterContentInit {
727
753
* @memberof IgxColumnComponent
728
754
*/
729
755
@notifyChanges ( )
756
+ @WatchColumnChanges ( )
730
757
@Input ( 'cellTemplate' )
731
758
get bodyTemplate ( ) : TemplateRef < any > {
732
759
return this . _bodyTemplate ;
@@ -758,6 +785,7 @@ export class IgxColumnComponent implements AfterContentInit {
758
785
* @memberof IgxColumnComponent
759
786
*/
760
787
@notifyChanges ( )
788
+ @WatchColumnChanges ( )
761
789
@Input ( )
762
790
get headerTemplate ( ) : TemplateRef < any > {
763
791
return this . _headerTemplate ;
@@ -790,6 +818,7 @@ export class IgxColumnComponent implements AfterContentInit {
790
818
* @memberof IgxColumnComponent
791
819
*/
792
820
@notifyChanges ( )
821
+ @WatchColumnChanges ( )
793
822
@Input ( 'cellEditorTemplate' )
794
823
get inlineEditorTemplate ( ) : TemplateRef < any > {
795
824
return this . _inlineEditorTemplate ;
@@ -819,6 +848,7 @@ export class IgxColumnComponent implements AfterContentInit {
819
848
* @memberof IgxColumnComponent
820
849
*/
821
850
@notifyChanges ( )
851
+ @WatchColumnChanges ( )
822
852
@Input ( 'filterCellTemplate' )
823
853
get filterCellTemplate ( ) : TemplateRef < any > {
824
854
return this . _filterCellTemplate ;
@@ -1209,7 +1239,8 @@ export class IgxColumnComponent implements AfterContentInit {
1209
1239
@ContentChild ( IgxCollapsibleIndicatorTemplateDirective , { read : IgxCollapsibleIndicatorTemplateDirective , static : false } )
1210
1240
protected collapseIndicatorTemplate : IgxCollapsibleIndicatorTemplateDirective ;
1211
1241
1212
- constructor ( public gridAPI : GridBaseAPIService < IgxGridBaseDirective & GridType > , public cdr : ChangeDetectorRef ) { }
1242
+ constructor ( public gridAPI : GridBaseAPIService < IgxGridBaseDirective & GridType > , public cdr : ChangeDetectorRef ,
1243
+ public rowIslandAPI : IgxRowIslandAPIService ) { }
1213
1244
1214
1245
/**
1215
1246
* @hidden
0 commit comments