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

visibility of attribute on other attribute change #274

Open
RusAlex opened this issue Feb 13, 2015 · 0 comments
Open

visibility of attribute on other attribute change #274

RusAlex opened this issue Feb 13, 2015 · 0 comments

Comments

@RusAlex
Copy link

RusAlex commented Feb 13, 2015

I do not understand why visibility handled only for change event only current attribute in config.

I suppose that there are many use cases to hide/show inputs based on other attribute changes.

I suppose to use next code in initializeVisible function

_.each(_.flatten([modelAttr]), function(attr) {
   observeModelEvent(model, 'change', config, visibleCb); 
});

Or maybe there is another way to hide/show inputs ?

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

1 participant