<ejs-grid [dataSource]='data' height='350'>
<e-columns>
<e-column field='OrderID' headerText='Order ID' width='120' textAlign='Right'></e-column>
<e-column field='CustomerName' headerText='Customer Name' width='150'></e-column>
<e-column field='OrderDate' headerText='Order Date' type='date' width='130' [format]="format" textAlign='Right'></e-column>
</e-columns>
</ejs-grid>
|
export class AppComponent {
public data: Object[] = [];
public format = {type:'date', format:'dd/MM/yyyy'}
}
|