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

Add color parameter in “money” formatter #25

Open
wzhang79 opened this issue Feb 16, 2024 · 1 comment
Open

Add color parameter in “money” formatter #25

wzhang79 opened this issue Feb 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@wzhang79
Copy link

The “money” formatter of tabulator is great. However, I want to color red for negative values, which is not possible in the current tabulator settings. Is it possible to add “color” parameter in formatterParams which can set color for negative value?

@crazycapivara
Copy link
Contributor

@wzhang79 unfortunately this is not possible at the moment. Maybe as a workaround you could add another column before or after your money column with the tickCross formatter, which shows red crosses :-)

{"formatter": "tickCross"}

@crazycapivara crazycapivara added the enhancement New feature or request label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants