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

added "item.disabled" logic, supporting both boolean values and a fun… #556

Merged

Conversation

zoul0813
Copy link
Member

@zoul0813 zoul0813 commented Dec 10, 2018

…ction that is passed a reference to the model to determine disabled logic based on the model.

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Implements the ability to disable individual radio buttons with a boolean or function return.
  • What is the current behavior? (You can also link to an open issue here)
    None
  • What is the new behavior (if this is a feature change)?
    When defining a radio button, the values can have a name, value and disabled property. The disabled property can either be a boolean or a function.

When an item is disabled, the input's "disabled" property is set to true.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    It should not

…ction that is passed a reference to the model to determine disabled logic based on the model.
@coveralls
Copy link

coveralls commented Dec 10, 2018

Coverage Status

Coverage remained the same at 89.916% when pulling 3b750b3 on zoul0813:feature/551-radio-disable-single into a484031 on vue-generators:master.

@zoul0813
Copy link
Member Author

documentation updated in vue-generators/vue-form-generator-docs#2

@zoul0813 zoul0813 merged commit 16530e0 into vue-generators:master Dec 14, 2018
@zoul0813 zoul0813 deleted the feature/551-radio-disable-single branch December 14, 2018 18:08
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

Successfully merging this pull request may close these issues.

2 participants