aequos-solutions / modern-data-visualizer

Documentation for the Modern Data Visualizer solution
https://aequos-solutions.github.io/modern-data-visualizer/
8 stars 7 forks source link

[QUESTION] Formatting Dates and Numbers in Results Webparts #125

Open RyanSCaldwell opened 2 months ago

RyanSCaldwell commented 2 months ago

Version used Version 1.5.4

Question Can you change the format of a Date or Number in the results webpart without using a custom handlebar helper?

Additional context Our users leverage Dates and Numbers throughout their SharePoint data. Both data types are outputted in a non-user freiendly way in the results webpart.

Ex: If the number (currency column) is "$123,456,789", it will show as 123456789 in the results webpart. Ex: If the date is "9/5/2024 9:00 AM", it will show as 2024-09-05T09:00:00Z in the results webpart.

RyanSCaldwell commented 2 months ago

@Laul0 any thoughts here?

Laul0 commented 2 months ago

Hi @RyanSCaldwell,

We didn't plan to include a "preformatted" date or number values. The power of Handlebars is anyone can do what he wants without limitation - but that requires creating a Handlebars template. We will keep an eye on your suggestion and challenge it internally.

Thank you for your question and your interest