Howto export Grid to Pdf or excel, include template cell,
trip.format_speed=function(obj){
const speed = obj.row.data[‘speed’];
obj.template = speed + ‘Km/Jam’;
}
columns: [
{ label: ‘Date’, dataField: ‘tdate’, width: 200 },
{ label: ‘Speed’, dataField: ‘speed’, width: 100, template: trip.format_speed },
{ label: ‘Engine’, dataField: ‘acc’, width: 100, template: trip.format_acc },
{ label: ‘Charger’, dataField: ‘charge’, width: 100, template: trip.format_charge },
{ label: ‘Battery’, dataField: ‘batt’, width: 100, template: trip.format_battery },
{ label: ‘Address’, dataField: ‘address’, width: 250 }
]
-
This topic was modified 2 years, 11 months ago by Joko Pitoyo.
-
This topic was modified 2 years, 11 months ago by Joko Pitoyo.