Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dynamically updating description tooltips #6676

Merged
merged 3 commits into from
Apr 5, 2024
Merged

Conversation

ahuang11
Copy link
Contributor

@ahuang11 ahuang11 commented Apr 4, 2024

Closes #6620 and also fixes descriptions for other widgets

import panel as pn

pn.extension()

button_icon = pn.widgets.ButtonIcon(
    active_icon="check",
    description="Hey",
    icon="clipboard",
    size="5em",
    toggle_duration=1000,
)

button = pn.widgets.Button(
    name="Testing",
    description="Hey"
)

checkbox_group = pn.widgets.RadioButtonGroup(
    options=["Biology", "Chemistry", "Physics"],
    description="Hey"
)

pn.Column(
    button_icon,
    button_icon.param.description,
    button,
    button.param.description,
    checkbox_group,
    checkbox_group.param.description
).servable()
Screen.Recording.2024-04-04.at.3.18.15.PM.mov

Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.83%. Comparing base (2996220) to head (602ebb9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6676   +/-   ##
=======================================
  Coverage   82.82%   82.83%           
=======================================
  Files         313      313           
  Lines       46151    46160    +9     
=======================================
+ Hits        38226    38235    +9     
  Misses       7925     7925           
Flag Coverage Δ
ui-tests 39.98% <100.00%> (+0.01%) ⬆️
unitexamples-tests 71.10% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@MarcSkovMadsen MarcSkovMadsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks.

@philippjfr philippjfr merged commit c3d265f into main Apr 5, 2024
15 checks passed
@philippjfr philippjfr deleted the update_tooltip branch April 5, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot change description/ tooltip of ButtonIcon dynamically
3 participants