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

[proposal] Right align of numeric columns #17

Open
lechu445 opened this issue Aug 11, 2017 · 2 comments
Open

[proposal] Right align of numeric columns #17

lechu445 opened this issue Aug 11, 2017 · 2 comments
Assignees

Comments

@lechu445
Copy link

For normal tables, columns with all numeric cells would be formatted with right align.
EXAMPLE:
before formatting:

| column1 | column2 |
|---------|---------|
| text1   | 12.00   |
| text2   |         |
| text3   | 9       |

after formatting:

| column1 | column2 |
|---------|---------|
| text1   |   12.00 |
| text2   |         |
| text3   |       9 |

I think this change refers to method getCellInfoList in helper.ts

@shuGH
Copy link
Owner

shuGH commented Aug 13, 2017

OK.
It looks nice.
I will think about it.

@shuGH shuGH self-assigned this Aug 13, 2017
@lechu445 lechu445 mentioned this issue Sep 18, 2017
@ChristianKurz
Copy link

It would be nice to right align by numbers by .:

| column1 | column2 |
|---------|---------|
| text1   |   12.02 |
| text2   |    1.1  |
| text3   |     .01 |
| text4   |         |
| text5   |       9 |

This would make comparing floats with different precision easier. I think intgers should only be right aligned, but aligning by . would be possible too:

| column1 | column2 |
|---------|---------|
| text1   |   12.02 |
| text2   |    1.1  |
| text3   |     .01 |
| text4   |         |
| text5   |    9    |

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

No branches or pull requests

3 participants