Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Created February 22, 2016 00:02
Show Gist options
  • Save msrivastav13/4df7886af1b2dfaf3989 to your computer and use it in GitHub Desktop.
Save msrivastav13/4df7886af1b2dfaf3989 to your computer and use it in GitHub Desktop.
({
toggleClass: function(component,componentId,className) {
var modal = component.find(componentId);
$A.util.removeClass(modal,className+'hide');
$A.util.addClass(modal,className+'open');
},
toggleClassInverse: function(component,componentId,className) {
var modal = component.find(componentId);
$A.util.addClass(modal,className+'hide');
$A.util.removeClass(modal,className+'open');
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment