Hi all. Apologies if this is a stupid question/request, but I’m a bit of a noob. However, I’ve been searching for the last couple of weeks for a way to be able to format figures in tables I’m making with the st_aggrid library/component, to have comma delimiters for thousands, millions, etc.
While I’ve found a number of references to the
valueFormatter, in each instance that appears to be formatting a specific data column (eg
valueFormatter="parseFloat(data.numeric_column_a)... where I believe
numeric_column_a is a specific column name.)
I’ve created a function (which I called
table_maker ) to build tables and into that function I pass a list of currency columns, using your
customCurrencyFormat method, which is great. However, within this I’d like to add in the comma delimiters for thousands.
Does anyone know if there’s a way I can deploy the
valueFormatter within the
configure_columns method to achieve this result? Here’s what I’m using in my
table_maker function to format the currency columns:
gb.configure_columns( currency_cols_list, type=["numericColumn", "numberColumnFilter", "customCurrencyFormat"], precision=2, custom_currency_symbol="£", )
Again, apologies if this is not the right forum or I’m not being clear in the question. It’s just that I’ve been trying to get this working for a couple of weeks and can’t see any other way to move forward.
Thanks, in advance, for any help.