You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/dash-table/dash_table/DataTable.py
+27-4
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,29 @@ class DataTable(Component):
12
12
active.
13
13
- columns (list; optional): Columns describes various aspects about each individual column.
14
14
`name` and `id` are the only required parameters.
15
+
- locale_format (optional): The localization specific formatting information applied to all columns in the table.
16
+
17
+
This prop is derived from the [d3.formatLocale](https://github.com/d3/d3-format#formatLocale) data structure specification.
18
+
19
+
When left unspecified, each individual nested prop will default to a pre-determined value.
20
+
21
+
'symbol': (default: ['$', '']) a list of two strings representing the
22
+
prefix and suffix symbols. Typically used for currency, and implemented using d3's
23
+
currency format, but you can use this for other symbols such as measurement units.
24
+
'decimal': (default: '.') the string used for the decimal separator
25
+
'group': (default: ',') the string used for the groups separator
26
+
'grouping': (default: [3]) a list of integers representing the grouping pattern
27
+
'numerals': a list of ten strings used as replacements for numbers 0-9
28
+
'percent': (default: '%') the string used for the percentage symbol
29
+
'separate_4digits': (default: True) separate integers with 4-digits or less. locale_format has the following type: dict containing keys 'symbol', 'decimal', 'group', 'grouping', 'numerals', 'percent', 'separate_4digits'.
30
+
Those keys have the following types:
31
+
- symbol (list; optional)
32
+
- decimal (string; optional)
33
+
- group (string; optional)
34
+
- grouping (list; optional)
35
+
- numerals (list; optional)
36
+
- percent (string; optional)
37
+
- separate_4digits (boolean; optional)
15
38
- content_style (a value equal to: 'fit', 'grow'; optional): `content_style` toggles between a set of CSS styles for
16
39
two common behaviors:
17
40
- `fit`: The table container's width be equal to the width of its content.
@@ -208,7 +231,7 @@ class DataTable(Component):
208
231
in the list. Higher priority (more specific) conditional
209
232
tooltips should be put at the beginning of the list.
210
233
211
-
The `if` refers to the condtion that needs to be fulfilled
234
+
The `if` refers to the condition that needs to be fulfilled
212
235
in order for the associated tooltip configuration to be
213
236
used. If multiple conditions are defined, all conditions
214
237
must be met for the tooltip to be used by a cell.
@@ -387,12 +410,12 @@ class DataTable(Component):
387
410
Subscribe to [https://github.com/plotly/dash-table/issues/168](https://github.com/plotly/dash-table/issues/168)
0 commit comments