From 6a0b8c3e3f90dbfbc2753f2103bdee1a01870875 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 2 Jun 2016 15:15:49 +0100 Subject: [PATCH] #82 demo app fixes --- .../datatable/datatable-demo.component.ts | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/demo-shell-ng2/app/components/datatable/datatable-demo.component.ts b/demo-shell-ng2/app/components/datatable/datatable-demo.component.ts index f20a982b51..06ecccd361 100644 --- a/demo-shell-ng2/app/components/datatable/datatable-demo.component.ts +++ b/demo-shell-ng2/app/components/datatable/datatable-demo.component.ts @@ -106,10 +106,34 @@ export class DataTableDemoComponent { replaceRows() { let objects = [ - {id: 10, name: 'Name 10', createdBy: this._createdBy, icon: 'material-icons://face'}, - {id: 11, name: 'Name 11', createdBy: this._createdBy, icon: 'material-icons://language'}, - {id: 12, name: 'Name 12', createdBy: this._createdBy, icon: 'material-icons://pets'}, - {id: 13, name: 'Image 13', createdBy: this._createdBy, icon: this._imageUrl} + { + id: 10, + name: 'Name 10', + createdBy: this._createdBy, + createdOn: new Date(2016, 6, 2, 15, 8, 5), + icon: 'material-icons://face' + }, + { + id: 11, + name: 'Name 11', + createdBy: this._createdBy, + createdOn: new Date(2016, 6, 2, 15, 8, 6), + icon: 'material-icons://language' + }, + { + id: 12, + name: 'Name 12', + createdBy: this._createdBy, + createdOn: new Date(2016, 6, 2, 15, 8, 7), + icon: 'material-icons://pets' + }, + { + id: 13, + name: 'Image 13', + createdBy: this._createdBy, + createdOn: new Date(2016, 6, 2, 15, 8, 8), + icon: this._imageUrl + } ]; let rows = objects.map(obj => new ObjectDataRow(obj)); this.data.setRows(rows);