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

Add "enabled" state for interactive widgets #143

Closed
futurepaul opened this issue Sep 7, 2019 · 1 comment
Closed

Add "enabled" state for interactive widgets #143

futurepaul opened this issue Sep 7, 2019 · 1 comment
Labels
discussion needs feedback and ideas enhancement adds or requests a new feature help wanted has no one working on it yet

Comments

@futurepaul
Copy link
Collaborator

As mentioned in #134, we need some sort of enabled / disabled state for the button widget. It also makes sense for other widgets: slider, checkbox (I'll have a PR for that soon), textbox, scrollbar, and I'm sure other widgets to come.

To kick things off, here's @raphlinus's comment:

...what I was thinking (and this is borrowed to some extent from SwiftUI) is that the enabled state becomes part of env (probably with specific API surface for it; doesn't have to go through the typed key/value mechanism) and widgets respond to it. There are definitely questions though.

This sounds pretty straightforward to implement. I'm not sure what the questions are, though!

@SecondFlight
Copy link
Collaborator

Closing as resolved via #1717.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion needs feedback and ideas enhancement adds or requests a new feature help wanted has no one working on it yet
Projects
None yet
Development

No branches or pull requests

3 participants