Hi,
Let us assume , I am using below custom component :
webix.protoUI({
name:"newComponent", // the name of a new component
$init:function(config){
this.load(data.xml)
//functions executed on component initialization
},
defaults:{
width:200,
on:{'onItemClick' : function(){}} //attached events
},
refresh_func:function(){
var self = this;
this.addChilView();
}, //any custom function
$getSize: function(x, y){..},
$setSize:function(x, y){..},
}, webix.ui.list, // the name of the base component
webix.Movable); // extended functionality
How can I call the function ‘refresh_func’ from a JavaScript file outside of where this custom component is defined ?
Is there anything like below I can do :
$$('newComponent').refresh_func
Thanks.