Skip to content

Commit beb059e

Browse files
committed
Added tooltip component property
1 parent ba8200e commit beb059e

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

chartlets.py/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- using `schema` instead of `type` property for callback arguments
1717
- using `return` object with `schema` property for callback return values
1818

19+
* Added `tooltip` property to interactive components.
1920

2021
## Version 0.0.29 (from 2024/11/26)
2122

chartlets.py/chartlets/components/button.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class Button(Component):
2828
One "contained" | "outlined" | "text". Defaults to "text".
2929
"""
3030

31+
tooltip: str | None = None
32+
"""Tooltip title. Optional."""
33+
34+
3135

3236
@dataclass(frozen=True)
3337
class IconButton(Component):
@@ -50,3 +54,7 @@ class IconButton(Component):
5054
"""The button variant.
5155
One "contained" | "outlined" | "text". Defaults to "text".
5256
"""
57+
58+
tooltip: str | None = None
59+
"""Tooltip title. Optional."""
60+

chartlets.py/chartlets/components/checkbox.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ class Checkbox(Component):
1313

1414
label: str = ""
1515
"""The checkbox label."""
16+
17+
tooltip: str | None = None
18+
"""Tooltip title. Optional."""
19+

chartlets.py/chartlets/components/select.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ class Select(Component):
1717
"""The options given as a list of number or text values or a list
1818
of (value, label) pairs.
1919
"""
20+
21+
tooltip: str | None = None
22+
"""Tooltip title. Optional."""
23+

0 commit comments

Comments
 (0)