Custom format for dynamic table values

In addition to the advanced options of the Table component, I would love to see another field that allows for custom value formatting.

To be clear, I am using dynamic columns, which means I cannot directly control the columns themselves, given how they are dynamic/variable. I would really like to see a field that allows for custom formatting.

One potential solution would be to expand the "Format" options with an additional "Custom" option that toggles a new field to specify a custom format. That way, people are able to decide on how to format the value based on the {{ item }} variable.

(By the way, I realize there is the option to use the Transform response and deal with formatting values from there, but I think many would like to use the interface for doing stuff like this, since it would be grouped with related logic.)

To illustrate what I am aiming for, please allow me to demonstrate using a fictional UI screenshot below:

example

P.s. I think the implementation of such a feature would not be out of reach, given that there is already something similar built in, but this only works for fixed columns. My solution would extend on this built-in solution, but using dynamic columns (and therefore none).

2 Likes

Hello @emozio!

Thank you so much for the well written out feedback and the custom screenshots. I completely agree, this shouldn't be too hard for our team to build out and would be very useful for both dynamic and non-dynamic columns to have this additional level of specificity for customized formatting.

I can make a feature request, add in those screen shots you shared and will keep you updated in this thread on any news I hear from the team! :saluting_face:

1 Like

My pleasure, I hope this will help improve Retool for other devs and myself.
Thanks for the quick response.

1 Like