Skip to content

Commit

Permalink
Merged 579
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Dec 20, 2016
1 parent f22714a commit 4a088e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 3 additions & 10 deletions components/datatable/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni

@ContentChild(FooterColumnGroup) footerColumnGroup: FooterColumnGroup;

@Input() public filters: {[s: string]: FilterMetadata;} = {};

public dataToRender: any[];

public first: number = 0;
Expand All @@ -455,8 +457,6 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni

public filterTimeout: any;

public filters: {[s: string]: FilterMetadata;} = {};

public filteredValue: any[];

public columns: Column[];
Expand Down Expand Up @@ -536,14 +536,7 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni

ngOnInit() {
if(this.lazy) {
this.onLazyLoad.emit({
first: this.first,
rows: this.rows,
sortField: this.sortField,
sortOrder: this.sortOrder,
filters: null,
multiSortMeta: this.multiSortMeta
});
this.onLazyLoad..emit(this.createLazyLoadMetadata());
}
}

Expand Down
6 changes: 6 additions & 0 deletions showcase/demo/datatable/datatabledemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,12 @@ <h3>Attributes</h3>
<td>false</td>
<td>Adds hover effect to rows without the need for selectionMode.</td>
</tr>
<tr>
<td>filters</td>
<td>array</td>
<td>null</td>
<td>An array of FilterMetadata objects to provide external filters.</td>
</tr>
</tbody>
</table>
</div>
Expand Down

0 comments on commit 4a088e7

Please sign in to comment.