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

Automatic width not correct when using formatter #62

Open
Richie765 opened this issue Apr 11, 2020 · 1 comment
Open

Automatic width not correct when using formatter #62

Richie765 opened this issue Apr 11, 2020 · 1 comment

Comments

@Richie765
Copy link

Problem Summary

I'm using a formatter function to add 'USD' to a money amount. The automatic column width is determined by the value before the formatter instead of the string returned by the formatter.

Expected Result (screen shot if possible)

Automatic column width should be wider.

Actual Result (screen shot if possible)

It's the width based on the original value before the formatter.

Steps to Reproduce

  1. Basic table code without specifying column widths
  2. formatter: (cellValue) => { return cellValue + ' USD' }
  3. Column is not wide enough.
@tecfu
Copy link
Owner

tecfu commented Apr 13, 2020

Thanks for reporting. I don't really have time to add this feature at the moment, but I'd be happy to merge your pull request.

You can also set column widths to a fixed value or a percentage to remedy this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants