Hi, How do I identify whether particular method exist within component?I wanted to achieve something like this: if(element.HasMethod(“showPopup”)) { //Process }
I have checked HasMethod which is in webix.ui,but not sure does it serve this purpose.
Normally you can use just a plain check
if ($$("some").getItem)){ //view has method getItem }
HasMethod has a more specific use-case. It says is some type of views support the method
if (webix.ui.hasMethod("list", "getItem")){ }
in above code snippet “list” is a type of views, not the ID