|
App.component.ts
public ngOnInit(): void {
this.data = orderDetails;
this.orderColumns = [
{
headerText: 'Order Date',
format: 'yMd',
width: 130,
columns: [
{
field: 'OrderDate',
headerText: 'Order Date',
format: 'yMd',
width: 130,
textAlign: 'Right',
minWidth: 10
},
{
field: 'Freight',
headerText: 'Freight ($)',
width: 120,
format: 'C1',
textAlign: 'Right',
minWidth: 10
}
],
textAlign: 'Center',
minWidth: 10
},
{
headerText: 'Ship Details',
width: 120,
format: 'C1',
textAlign: 'Right',
columns: [
{
field: 'ShippedDate',
headerText: 'Shipped Date',
format: 'yMd',
textAlign: 'Right',
width: 150,
minWidth: 10
},
{
field: 'ShipCountry',
headerText: 'Ship Country',
width: 150,
minWidth: 10
}
]
}
];
this.shipColumns = [
{
headerText: 'Ship Date',
format: 'yMd',
width: 130,
columns: [
{
field: 'ShippedDate',
headerText: 'Ship Date',
format: 'yMd',
width: 130,
textAlign: 'Right',
minWidth: 10
},
{
field: 'ShipAddress',
headerText: 'Address',
width: 120,
format: 'C1',
textAlign: 'Right',
minWidth: 10
}
],
textAlign: 'Center',
minWidth: 10
},
{
headerText: 'Ship Details',
width: 120,
format: 'C1',
textAlign: 'Right',
columns: [
{
field: 'ShipCity',
headerText: 'Shipped City',
textAlign: 'Right',
width: 150,
minWidth: 10
},
{
field: 'ShipRegion',
headerText: 'Region',
width: 150,
minWidth: 10
}
]
}
];
}
|