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

Programatically control the switch #3

Open
rajesh1158 opened this issue Jun 10, 2017 · 3 comments
Open

Programatically control the switch #3

rajesh1158 opened this issue Jun 10, 2017 · 3 comments

Comments

@rajesh1158
Copy link

I have a set of these switches (N), where if I switch ON 1, the remaining N-1 must turn OFF and if I turn any of the N-1 ON, the 1st switch must turn OFF. I changed code to listen for the 'defaultValue' property but that does not help. Neither does the property 'value'.

@ShaunEvening
Copy link
Contributor

Hi @rajesh1158,

I have submitted PR #4 that should allow you to control your switches programatically from a parent component using the value and onChangeValue properties. If and when this is merged it should solve your issue 👍

@baderahmed
Copy link
Owner

@ShaunLloyd your pull request is merged

@ShaunEvening
Copy link
Contributor

@baderahmed Awesome! thank you so much :)

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

3 participants