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,

    Try this way, It may work:

    Step1. Copy File record.js

    From:  clients/base/views/record/record.js

    To: custom/clients/base/views/record/record.js

    Step2. Add in "_render" function this code at the end:

    var defaultLayout = this.closestComponent('sidebar');

    if (defaultLayout) {

        defaultLayout.trigger('sidebar:toggle', true);

    }

Reply
  • Hi Shyam,

    Try this way, It may work:

    Step1. Copy File record.js

    From:  clients/base/views/record/record.js

    To: custom/clients/base/views/record/record.js

    Step2. Add in "_render" function this code at the end:

    var defaultLayout = this.closestComponent('sidebar');

    if (defaultLayout) {

        defaultLayout.trigger('sidebar:toggle', true);

    }

Children
No Data