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
+98-3Lines changed: 98 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,101 @@ class DataTable(Component):
171
171
NOTE: The naming and the behavior of this option may change
172
172
in the future.
173
173
Tune in to [https://github.com/plotly/dash-table/issues/168](https://github.com/plotly/dash-table/issues/168)
174
+
- column_static_tooltip (optional): `column_static_tooltip` represents the tooltip shown
175
+
for different columns.
176
+
The `property` name refers to the column ID.
177
+
The `type` refers to the type of tooltip syntax used
178
+
for the tooltip generation. Can either be `markdown`
179
+
or `text`. Defaults to `text`.
180
+
The `value` refers to the syntax-based content of
181
+
the tooltip. This value is required.
182
+
The `delay` represents the delay in milliseconds before
183
+
the tooltip is shown when hovering a cell. This overrides
184
+
the table's `tooltip_delay` property. If set to `null`,
185
+
the tooltip will be shown immediately.
186
+
The `duration` represents the duration in milliseconds
187
+
during which the tooltip is shown when hovering a cell.
188
+
This overrides the table's `tooltip_duration` property.
189
+
If set to `null`, the tooltip will not disappear.
190
+
191
+
Alternatively, the value of the property can also be
192
+
a plain string. The `text` syntax will be used in
193
+
that case.. column_static_tooltip has the following type: dict with strings as keys and values of type dict containing keys 'delay', 'duration', 'type', 'value'.
194
+
Those keys have the following types:
195
+
- delay (number; optional)
196
+
- duration (number; optional)
197
+
- type (a value equal to: 'text', 'markdown'; optional)
198
+
- value (string; required) | string
199
+
- column_conditional_tooltips (list; optional): `column_conditional_tooltips` represents the tooltip shown
200
+
for different columns and cells.
201
+
202
+
This property allows you to specify different tooltips for
203
+
depending on certain conditions. For example, you may have
204
+
different tooltips in the same column based on the value
205
+
of a certain data property.
206
+
207
+
Priority is from first to last defined conditional tooltip
208
+
in the list. Higher priority (more specific) conditional
209
+
tooltips should be put at the beginning of the list.
210
+
211
+
The `if` refers to the condtion that needs to be fulfilled
212
+
in order for the associated tooltip configuration to be
213
+
used. If multiple conditions are defined, all conditions
214
+
must be met for the tooltip to be used by a cell.
215
+
216
+
The `if` nested property `column_id` refers to the column
217
+
ID that must be matched.
218
+
The `if` nested property `row_index` refers to the index
219
+
of the row in the source `data`.
220
+
The `if` nested property `filter` refers to the query that
221
+
must evaluate to True.
222
+
223
+
The `type` refers to the type of tooltip syntax used
224
+
for the tooltip generation. Can either be `markdown`
225
+
or `text`. Defaults to `text`.
226
+
The `value` refers to the syntax-based content of
227
+
the tooltip. This value is required.
228
+
The `delay` represents the delay in milliseconds before
229
+
the tooltip is shown when hovering a cell. This overrides
230
+
the table's `tooltip_delay` property. If set to `null`,
231
+
the tooltip will be shown immediately.
232
+
The `duration` represents the duration in milliseconds
233
+
during which the tooltip is shown when hovering a cell.
234
+
This overrides the table's `tooltip_duration` property.
235
+
If set to `null`, the tooltip will not disappear.
236
+
- tooltips (dict with strings as keys and values of type list; optional): `tooltips` represents the tooltip shown
237
+
for different columns and cells.
238
+
The `property` name refers to the column ID. Each property
239
+
contains a list of tooltips mapped to the source `data`
240
+
row index.
241
+
242
+
The `type` refers to the type of tooltip syntax used
243
+
for the tooltip generation. Can either be `markdown`
244
+
or `text`. Defaults to `text`.
245
+
The `value` refers to the syntax-based content of
246
+
the tooltip. This value is required.
247
+
The `delay` represents the delay in milliseconds before
248
+
the tooltip is shown when hovering a cell. This overrides
249
+
the table's `tooltip_delay` property. If set to `null`,
250
+
the tooltip will be shown immediately.
251
+
The `duration` represents the duration in milliseconds
252
+
during which the tooltip is shown when hovering a cell.
253
+
This overrides the table's `tooltip_duration` property.
254
+
If set to `null`, the tooltip will not disappear.
255
+
256
+
Alternatively, the value of the property can also be
257
+
a plain string. The `text` syntax will be used in
258
+
that case.
259
+
- tooltip_delay (number; optional): `tooltip_delay` represents the table-wide delay in milliseconds before
260
+
the tooltip is shown when hovering a cell. If set to `null`, the tooltip
261
+
will be shown immediately.
262
+
263
+
Defaults to 350.
264
+
- tooltip_duration (number; optional): `tooltip_duration` represents the table-wide duration in milliseconds
265
+
during which the tooltip will be displayed when hovering a cell. If
266
+
set to `null`, the tooltip will not disappear.
267
+
268
+
Defaults to 2000.
174
269
- filtering (a value equal to: 'fe', 'be', true, false; optional): The `filtering` property controls the behavior of the `filtering` UI.
175
270
If `False`, then the filtering UI is not displayed
176
271
If `fe` or True, then the filtering UI is displayed and the filtering
@@ -292,12 +387,12 @@ class DataTable(Component):
292
387
Subscribe to [https://github.com/plotly/dash-table/issues/168](https://github.com/plotly/dash-table/issues/168)
0 commit comments