yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
826 stars 263 forks source link

How to make template: 'prettyDate' work ? #371

Open aessig opened 7 years ago

aessig commented 7 years ago

Hi, I tried to add this line: {label: 'Joined', name: 'createdAt', template: 'prettyDate'} but it makes the table empty ? Any idea how to solve that ?

kenshinman commented 6 years ago

Hi @aessig , did you ever find a solution to this? Thanks

kenshinman commented 6 years ago

@aessig I got this working after I almost gave up

here's my code prettyDate.html

<template name="prettyDate">
    <p> {{formatDate doc.createdAt}} </p>
</template>

and in the tableColumns

---
tableColumns: [
       ---
        { label: "Created On", name: "createdAt", template: "prettyDate" }
       ---
      ]
---