Skip to content

Add ability to radix align numbers. #45

@brian-mcallister-lab49

Description

@brian-mcallister-lab49

This could potentially be a bit of a tricky one... but, it's likely that you're going to use this component inside some kind of grid. In that case, you'll have many rows of data, and one or more columns in those rows with flashing numbers.

We could provide an option to pad the numbers such as that one column in a grid could be "radix aligned", or, aligned to the decimal point. For example, this is what this would look like now:

row1 | 123.45
row2 | 23.45
row3 | 1.45

...and this is what we'd want it to look like:

row1 | 123.45
row2 |  23.45
row3 |   1.45

This would make large grids of numbers much easier to scan. The catch is that this would really only work with fixed width numbers. I don't see any way to "enforce" that in this package, but we could simply document and provide screenshots to indicate that this is something a user would need to configure on their own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions