How to close/hide by default sidebar pane (right side Dashboard) in Sugarcrm 7.7

Hi All,

I want to close/hide by default sidebar pane for all modules, please have a look on below screen shots.
sidebar.jpg

Thanks,

Shyam

Parents
  • Hi Shyam Gaikwad,

    You can close sidebar using modifying record.js initialize method.

    I created a record.js into custom/clients/base/views/record/ folder with following code;

    ({
        extendsFrom: "RecordView",
        initialize: function(options) {
            this._super('initialize', [options]);
            var defaultLayout = this.closestComponent('sidebar');
            if (defaultLayout && defaultLayout.isSidePaneVisible() ) {
                defaultLayout.trigger('sidebar:toggle');
            }
        }
    })
    

    Best Regards

    Tevfik Tümer

    Developer Support Engineer

Reply
  • Hi Shyam Gaikwad,

    You can close sidebar using modifying record.js initialize method.

    I created a record.js into custom/clients/base/views/record/ folder with following code;

    ({
        extendsFrom: "RecordView",
        initialize: function(options) {
            this._super('initialize', [options]);
            var defaultLayout = this.closestComponent('sidebar');
            if (defaultLayout && defaultLayout.isSidePaneVisible() ) {
                defaultLayout.trigger('sidebar:toggle');
            }
        }
    })
    

    Best Regards

    Tevfik Tümer

    Developer Support Engineer

Children