Need to add customization to a common view, which is extended by every other view

Team,

I want to know a common view file where i could add my conditional customization,  so that i can apply my changes to multiple files.

Digging into the code  it seems like clients/base/views/base/base.js can be that file which could serve my requirement. but somehow BaseView is not getting overridden into the custom folder i.e. custom/clients/base/views/base/base.js with the below code snippet.

/**
* @class View.Views.Base.BaseCustomView
* @alias SUGAR.App.view.views.BaseCustomBaseView
* @extends View.BaseView
*/
({
extendsFrom: "BaseView",
initialize: function() {
console.log("Fdsfsdfds");
this._super('initialize', [options]);
},

})

Need help as soon as I can get.

Parents
  • Dear Amber

    Overriding is essentially creating or copying a view to be used by your application that is not extending its parent.

    Please check the next doc here

    Kind regards

  • -  Thanks for reply, but what i am trying to do is extend BaseView to CustomBaseView. 

    But with whatever i did, it just doesn't trigger the initialize method in my CustomBaseView which normally does happen for the Record View which you have shared.

    Basically i want to extend the Parent BaseView in clients/base/views/base/base.js

Reply
  • -  Thanks for reply, but what i am trying to do is extend BaseView to CustomBaseView. 

    But with whatever i did, it just doesn't trigger the initialize method in my CustomBaseView which normally does happen for the Record View which you have shared.

    Basically i want to extend the Parent BaseView in clients/base/views/base/base.js

Children
No Data