Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

feature: Add "disabled" component prop #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oprearocks
Copy link

Add "disabled" property on the component and pass it down to the select boxes.
The main usecase for this would be if users would like to programatically disable the elements using native DOM attributes and not having to go through CSS gymnastics to do that.

Add "disabled" property on the component and pass it down to the select boxes.
The main usecase for this would be if users would like to programatically disable the elements using native DOM attributes and not having to go through CSS gymnastics to do that.
The attribute in its current DOM form is null/string but to keep consistency with JavaScript practices it was converted to a Boolean.
The Vue.js Template Syntax documentation states that native attributes whose values are falsy (null, undefined or false) will not be rendered.
See https://vuejs.org/v2/guide/syntax.html#Attributes for more information.
@oprearocks
Copy link
Author

@yangirov , what would be the proper way to test the module? How did you test it? I'd also like to know if I should also run the build script and update the dist/ contents, since I believe there's no build process right now. I can set that up on a CI system if you're open to it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant