Skip to content

Commit 1972aed

Browse files
committed
chore(adv-filtering): added headers to the grid filtering sample #5993
(cherry picked from commit 998926f)
1 parent b1424af commit 1972aed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/grid-filtering/grid-filtering.sample.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ export class GridFilteringComponent implements OnInit, AfterViewInit {
7777

7878
this.columns = [
7979
{ field: 'ID', width: 80, resizable: true, movable: true, type: 'string' },
80-
{ field: 'CompanyName', width: 150, resizable: true, movable: true, type: 'string'},
81-
{ field: 'ContactName', width: 150, resizable: true, movable: true, type: 'string' },
80+
{ field: 'CompanyName', header: 'Company Name', width: 175, resizable: true, movable: true, type: 'string'},
81+
{ field: 'ContactName', header: 'Contact Name', width: 175, resizable: true, movable: true, type: 'string' },
8282
{ field: 'Employees', width: 150, resizable: true, movable: true, type: 'number' },
83-
{ field: 'ContactTitle', width: 150, resizable: true, movable: true, type: 'string' },
84-
{ field: 'DateCreated', width: 150, resizable: true, movable: true, type: 'date' },
83+
{ field: 'ContactTitle', header: 'Contact Title', width: 150, resizable: true, movable: true, type: 'string' },
84+
{ field: 'DateCreated', header: 'Date Created', width: 150, resizable: true, movable: true, type: 'date' },
8585
{ field: 'Address', width: 150, resizable: true, movable: true, type: 'string' },
8686
{ field: 'City', width: 150, resizable: true, movable: true, type: 'string' },
8787
{ field: 'Region', width: 150, resizable: true, movable: true, type: 'string' },
88-
{ field: 'PostalCode', width: 150, resizable: true, movable: true, type: 'string' },
88+
{ field: 'PostalCode', header: 'Postal Code', width: 150, resizable: true, movable: true, type: 'string' },
8989
{ field: 'Phone', width: 150, resizable: true, movable: true, type: 'string' },
9090
{ field: 'Fax', width: 150, resizable: true, movable: true, type: 'string' },
9191
{ field: 'Contract', width: 150, resizable: true, movable: true, type: 'boolean' }

0 commit comments

Comments
 (0)