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

Disabled widgets #33

Open
Tishka17 opened this issue Feb 20, 2021 · 1 comment
Open

Disabled widgets #33

Tishka17 opened this issue Feb 20, 2021 · 1 comment
Labels
widget New widget request, or some widget fixes

Comments

@Tishka17
Copy link
Owner

Visible, but ignore clicks

@Tishka17 Tishka17 added the widget New widget request, or some widget fixes label Feb 20, 2021
@Tishka17
Copy link
Owner Author

Tishka17 commented Sep 7, 2022

What we can do:

  • add disabled_when= parameter to widget __init__
  • Add disabled text
  • Set callback data to empty string in this case

Otherwise user can just add 2 buttons with diferent when=, text and seconds one is without callback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
widget New widget request, or some widget fixes
Projects
None yet
Development

No branches or pull requests

1 participant