File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
projects/igniteui-angular/src/lib/test-utils Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -1184,8 +1184,7 @@ export class IgxGridFilteringESFTemplatesComponent extends BasicGridComponent {
11841184
11851185@Component ( {
11861186 template : `
1187- <igx-grid-excel-style-filtering style="height: 700px; width: 350px"
1188- [column]="grid1.getColumnByName('ProductName')">
1187+ <igx-grid-excel-style-filtering #esf style="height: 700px; width: 350px">
11891188 <igx-excel-style-column-operations>
11901189 <igx-excel-style-selecting></igx-excel-style-selecting>
11911190 </igx-excel-style-column-operations>
@@ -1207,11 +1206,23 @@ export class IgxGridFilteringESFTemplatesComponent extends BasicGridComponent {
12071206 </igx-column>
12081207 </igx-grid>`
12091208} )
1210- export class IgxGridExternalESFTemplateComponent extends BasicGridComponent {
1209+ export class IgxGridExternalESFTemplateComponent extends BasicGridComponent implements OnInit {
12111210 public customFilter = CustomFilter . instance ( ) ;
12121211 public resizable = false ;
12131212 public filterable = true ;
1213+
12141214 public data = SampleTestData . excelFilteringData ( ) ;
1215+
1216+ @ViewChild ( 'esf' , { read : IgxGridExcelStyleFilteringComponent , static : true } )
1217+ public esf : IgxGridExcelStyleFilteringComponent ;
1218+
1219+ constructor ( private cdr : ChangeDetectorRef ) {
1220+ super ( ) ;
1221+ }
1222+
1223+ ngOnInit ( ) : void {
1224+ this . esf . column = this . grid . getColumnByName ( 'Downloads' ) ;
1225+ }
12151226}
12161227
12171228@Component ( {
You can’t perform that action at this time.
0 commit comments