Format pipe for columns
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here
Current behavior Data must be formatted before being introduced to the table
Expected behavior It would be helpful if we were able to pass in a format string / function to a column for formatting purposes.
What is the motivation / use case for changing the behavior? I have a lot of columns that have dates stored in ISO 8601 format (which is great for data, but not so much for humans), and it would be great if the table could format the data as it’s rendering.
-
Table version: 0.7.x 4.1.0
-
Angular version: 2.0.x 2.4.1
-
Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:24 (3 by maintainers)
Top Results From Across the Web
How to use Date Pipes for some columns in PrimeNG table ...
I want to format that fields using a date pipe. html file <ng-template pTemplate="body" let-rowData let-columns="columns ...
Read more >Formatting Data using Pipes in the Ignite UI for Angular Grid
We are setting the autoGenerate property to true; do to this, Ignite UI will auto-generate all the columns by reading from the data...
Read more >shell - format to columns for real-time data (pipe)
I am looking for a way how to do a similar thing that column -t does, but without waiting for the input to...
Read more >Enhance your Angular Grid reports with Formatted values and ...
When we know which columns contain dates we can format them with the pipe transform method. From the docs: “A valueFormatter allows you...
Read more >Enhance your Angular Grid with Formatted values and Links
In our example, the column is named 'releaseDate'. When we know which columns contain dates we can format them with the pipe transform ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ganeshkantu, you could do something like this:
@SauceCode84 No magic in the rest of the stuff. Its the standard ngx-datatable template but here you go:
Three things in this code below:
Hope this helps.