Open wjcrowcroft opened 12 years ago
@wjcrowcroft did you get this one figured out? I would think in this case you'd want to take your values and re-formatColumn on the entire list. This doesn't rely so much on stateful behavior.
Your alternative suggestion of forcing it to a specific padded width might run into issues when the numbers are larger than the padded width you specified.
When new rows are added to a column in a table/list of values that has been formatted with
formatColumn
it would be great if the added values could be column-formatted along with the preceding values, otherwise this happens:Specifying an option (eg.
minLength : 7
), which pads the string to that length, might be one way to tackle this.A slightly more complicated alternative - could pass in a value or array of values to match it up to, for example:
Or a combination of the two.
If anyone has ideas - please add.