This repository was archived by the owner on Jan 3, 2024. It is now read-only.
OcCheckbox: add support for showing default values and clear buttons#1635
Open
dschmidt wants to merge 6 commits into
Open
OcCheckbox: add support for showing default values and clear buttons#1635dschmidt wants to merge 6 commits into
dschmidt wants to merge 6 commits into
Conversation
It's a bit more standard to not use v-model and split it into value binding and input event handling. Using a standard pattern makes it easier to reason about already and even more so when the clearButton is added in the next commit.
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
dschmidt
commented
Sep 5, 2021
| created() { | ||
| this.setChecked(this.model) | ||
| showClearButton() { | ||
| return this.clearButtonEnabled && this.value !== null |
Member
Author
There was a problem hiding this comment.
this.disabled needs to be taken into account.
10 tasks
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This PR adds support for showing default values and a clear button to
OcCheckbox.It's not beautiful (visually) by any means and the same UX problems as for #1634 apply here too.
Needs UX concept by @kulmann and @tbsbdr
Related Issue
(
@change,clearButtonEnabledanddefaultValue)Motivation and Context
See #1634
How Has This Been Tested?
Screenshots (if appropriate):
Nothing selected by user



Clicked once to switch value:
Clicked twice to explicitly set value:
Types of changes
Checklist:
Open tasks: