Is it possible to extend the crm:views/lead/detail view with my own custom view?
I wanted to make some changes on the parent view by creating my custom view and extend it in the parent view. Currently, the alert() method is not being executed when I try the below code.
Below code is an example of how I think to implement it.
Please advise. Thanks!
where,
paramater 1 -> view name?
parameter 2 -> parent view?
I wanted to make some changes on the parent view by creating my custom view and extend it in the parent view. Currently, the alert() method is not being executed when I try the below code.
Below code is an example of how I think to implement it.
Please advise. Thanks!
where,
paramater 1 -> view name?
parameter 2 -> parent view?
PHP Code:
Espo.define('Custom:Views.Lead.Detail', 'Crm:Views.Lead.Detail', function (Dep) {
return Dep.extend({
setup: function (){
Dep.prototype.setup.call(this);
},
afterRender: function(){
Dep.prototype.afterRender.call(this);
alert('Custom Child View Alert');
}
});
});
Comment