Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aessig opened this issue Oct 7, 2016 · 2 comments
Open

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

aessig opened this issue Oct 7, 2016 · 2 comments

Comments

@aessig
Copy link

aessig commented Oct 7, 2016

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
Copy link

kenshinman commented Aug 12, 2017

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

@kenshinman
Copy link

@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" }
       ---
      ]
---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants