i know the handler for the OnChange event is function(newValue : string, oldValue : string)
but is there anyway to get the id of the component which fired the vent within the handler?
i know the handler for the OnChange event is function(newValue : string, oldValue : string)
but is there anyway to get the id of the component which fired the vent within the handler?
Hi,
this
inside the event handler refers to a view that fires the event. Therefore, onChange event handler can be as in:
onChange: function( newValue, oldValue ){
var viewId = this.config.id;
// your code here
}
thank you!