Skip to content

Commit c709f53

Browse files
committed
added tooltips to demo
1 parent beb059e commit c709f53

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

chartlets.py/demo/my_extension/my_panel_1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def render_panel(ctx: Context) -> Component:
2222
label="Dataset",
2323
options=[(i, f"DS #{i + 1}") for i in range(len(ctx.datasets))],
2424
style={"flexGrow": 0, "minWidth": 120},
25+
tooltip="Select the test dataset to be used"
2526
)
2627
control_group = Box(
2728
style={

chartlets.py/demo/my_extension/my_panel_2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def render_panel(
2828
label="Variable",
2929
options=[(v, v) for v in variable_names],
3030
style={"flexGrow": 0, "minWidth": 120},
31+
tooltip="Select the variable of the test dataset to be used"
3132
)
3233
control_group = Box(
3334
style={

chartlets.py/demo/my_extension/my_panel_3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def render_panel(
2626
id="opaque",
2727
value=opaque,
2828
label="Opaque",
29+
tooltip="Select whether the color is opaque"
2930
)
3031

3132
color_select = Select(
@@ -34,6 +35,7 @@ def render_panel(
3435
label="Color",
3536
options=COLORS,
3637
style={"flexGrow": 0, "minWidth": 80},
38+
tooltip="Select color"
3739
)
3840

3941
info_text = Typography(

0 commit comments

Comments
 (0)