Skip to content

Instantly share code, notes, and snippets.

@manuelbordallo
Created December 4, 2017 16:54
Show Gist options
  • Select an option

  • Save manuelbordallo/7399f5128b9abf7fd2f144ef091193bd to your computer and use it in GitHub Desktop.

Select an option

Save manuelbordallo/7399f5128b9abf7fd2f144ef091193bd to your computer and use it in GitHub Desktop.
getParentByClassname : function(oControl, sClassname) {
var oParent = oControl.getParent();
if (oParent.getMetadata().getName() === sClassname) {
return oParent;
} else {
return this.getParentByClassname(oParent, sClassname);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment