Open thearabbit opened 7 years ago
@thearabbit
{
key: 'name',
label: 'Dessert (100g serving)',
sortable: true,
tooltip: 'Dessert (100g serving)',
className: 'important-column',
style: {
width: 250,
},
render: (name, all) => <p>{name}</p>
}
Based on this - https://github.com/hyojin/material-ui-datatables/pull/39/commits/5b4d613fab39408620fcc9b40466621641d3553a
... { key: 'enabled', render: (column, row) => ({column ? column.toString() : 'false'}) }, ...
I base on
Meteor JS + Mongodb
. I get the data fromMongodb
, and then attache it todata={TABLE_DATA}
directly. But I would like to formate any data field, example: createdDate Field: "DD/MM/YYYY". Please example.