Hi All,
I want to close/hide by default sidebar pane for all modules, please have a look on below screen shots.
Thanks,
Shyam
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);
}
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);
}