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

Consider splitting Text property of ToggleButton by state #26

Open
bruno-f-cruz opened this issue May 29, 2024 · 0 comments
Open

Consider splitting Text property of ToggleButton by state #26

bruno-f-cruz opened this issue May 29, 2024 · 0 comments

Comments

@bruno-f-cruz
Copy link

I would argue that the default use of ToggleButton is likely to have a UI element that transitions between two states (On and Off). Currently, these two states are represented by the aspect change of the button, but not reflected via the Text property.

I would suggest to split the Text property in two distinct properties CheckedText and UncheckedText to allow easily assigning different text states to the button.

It should be noted that this behavior can be mimicked using already available logic by externalizing the property Text from the UI element. However, given the general use of the UI element, I believe this should be supported somewhat natively by the operator.

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

No branches or pull requests

1 participant