backbone.stickit icon indicating copy to clipboard operation
backbone.stickit copied to clipboard

visibility of attribute on other attribute change

Open RusAlex opened this issue 10 years ago • 0 comments

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 ?

RusAlex avatar Feb 13 '15 10:02 RusAlex