-
Notifications
You must be signed in to change notification settings - Fork 55
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
Editor checkbox value #1533
Editor checkbox value #1533
Conversation
Also moved checkbox label to other side of checkbox.
Tested and having some issues:
|
They should follow the default setting. If no default is specified they should behave as before (which probably was unchecked)
Probably missed that. It defaults to 0 and 1 if uncheckedValue and checkedValue are missing, but apparently it can't handle if the entire config object is missing. I will soon return with an up-to-expectation-implementation. |
@johnnyblasta I can not reproduce the crash. Can you provide a configuration example? |
I did like this:
|
@johnnyblasta, still not able to reproduce. Access to uncheckedValue is guarded by this thing of beauty: |
Sorry I seemed to introduce the bug myself while debuging the thing with the checked boxes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #1519 and fixes #1520.
Adds the possibility to add which values a checkbox should use for checked and unchecked. As a bonus the checkbox is moved to the left of the label.
checkedValue defaults to 1 (backwards compatible)
uncheckedValue defaults to 0 (backwards compatible)
It is possible to only specify one of checkedValue and uncheckedValue and make it work, but I wouldn't recommend it as for backwards compatibility the logic interprets any truthy value as checked unless uncheckedValue is specified, but on save a specific value is set.