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

st.button - add delay to help tooltip #8686

Open
2 tasks done
ivan-schinella opened this issue May 16, 2024 · 1 comment
Open
2 tasks done

st.button - add delay to help tooltip #8686

ivan-schinella opened this issue May 16, 2024 · 1 comment
Labels
feature:st.button feature:tooltip type:enhancement Requests for feature enhancements or new features

Comments

@ivan-schinella
Copy link

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

In similar way to other framework, there should be an additional parameter, named, for example, "tooltip_delay", which would delay the display of the Help string.

Why?

It's annoying that the string appears right away and then covers other nearby elements.

How?

If the new parameter "tooltip_delay" is 0, tooltip appears immediately. When value increase (ms), help string is not show even if the mouse pointer remains positioned on the button. If you move the pointer and the delay is still in progress, the tooltip will not be shown at all. You could even add another parameter that moves the tooltip display manually: for example: above, below, left, right...

Additional Context

Here the example in Angula Material:
https://material.angular.io/components/tooltip/overview

@ivan-schinella ivan-schinella added the type:enhancement Requests for feature enhancements or new features label May 16, 2024
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

@LukasMasuch LukasMasuch changed the title st.button - add delay to tooltip st.button - add delay to help tooltip May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.button feature:tooltip type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

2 participants