-
-
Notifications
You must be signed in to change notification settings - Fork 72
Issue 189 - Number formatting #377
Conversation
- add formatter resolution code - use formatter in cell label - add formatting prop
…able into issue189-number-formatting
- add si prefix support - update js props and code to support si prefix
…able into issue189-number-formatting
| UPPER_CASE_HEX = 'X' | ||
| UNICODE = 'c' | ||
|
|
||
| class Format(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fuent interface to create the desired format/locale/prefix configuration
| self.specifier['precision'], | ||
| self.specifier['trim'].value, | ||
| self.specifier['type'].value | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns the actual format configuration object corresponding to all previous operations
…able into issue189-number-formatting
@chriddyp do you have an opinion about the default |
…able into issue189-number-formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another huge feature set! 💃
This has been released!
See the documentation in the new Data Types Chapter of the Dash DataTable User Guide.
(Original PR below)
This is a work in progress and not quite ready for review 😄
Fixes #189
separate_4digits nested prop under
localewill prevent grouping on values ]-10000,+10000[BI logic here means (1) data validation and (2) data sanitizing -- more data sanitizing/validation can be added in the future, for now concerning itself with columns (new) & pagination/filtering/sorting (refactored)
currencytosymboldash-docs(https://github.com/plotly/dash-docs/pull/416)Edge cases identified while writing tests or documentation
Approach: overridable
nullybehavior, non-number types are passthroughs''in those cases) and information is lostApproach Keep a duplicate of the df slice copied -- if during paste the df slice's stringification is the same as the clipboard content, assume that the data came from a datatable.
nullycase behavior (currently''(empty string)Note:
Diff settings->Hide whitespacehelps with a few of the diffs that involve indentation changes..