We would like to apply some CSS to some fields of localeCurrency, float, etc.
A couple of observations:
1) LocaleCurrency doesn't support decimalPrecision or decimalPadding. This would be nice for being able to round to dollars (dropping the cents).
2) Float or LocaleFloat. If we do a cellFormatter in a ListGrid, we lose any formatting that a decimalPad or decimalPrecision has added to the value.
3) We've tried creating a SimpleType that extends both float and localeFloat. There is some inconsistency with what function gets called in a ListGrid cell render. One calls shortDisplayFormatter while the other calls normalDisplayFormatter. Aside from that, we are having a hard time getting some form of Super called on the extended type.
Ultimately, we would like to keep the grouping, decimalPad, decimalPrecision of the extended type but then apply some additional CSS to it (change color based on positive / negative for example).
So how can we extend the built-in functionality of the builtinTypes?
A couple of observations:
1) LocaleCurrency doesn't support decimalPrecision or decimalPadding. This would be nice for being able to round to dollars (dropping the cents).
2) Float or LocaleFloat. If we do a cellFormatter in a ListGrid, we lose any formatting that a decimalPad or decimalPrecision has added to the value.
3) We've tried creating a SimpleType that extends both float and localeFloat. There is some inconsistency with what function gets called in a ListGrid cell render. One calls shortDisplayFormatter while the other calls normalDisplayFormatter. Aside from that, we are having a hard time getting some form of Super called on the extended type.
Ultimately, we would like to keep the grouping, decimalPad, decimalPrecision of the extended type but then apply some additional CSS to it (change color based on positive / negative for example).
So how can we extend the built-in functionality of the builtinTypes?
Comment