How to disable new feature in home page - dashboard - resizing ???

How to disable new feature in home page - dashboard - resizing (in shugar 10.3)???

Parents
  • Hi ,

    This can be done by customising dashboard-grid.js. 

    Locate the code block below to this path: custom/clients/base/layouts/dashboard-grid/dashboard-grid.js

    ({
        extendsFrom: "DashboardGridLayout",
        initialize(opts){
            // Solution #1. Completely disables resize
            this.defaultElementOptions['noResize'] = true;
            
            // Solution #2. Enable only left, bottom left, bottom
            // this.defaultElementOptions['resizeHandles'] = 's, sw, w'; // Only enables bottom, bottom left left resize.
            
            this._super('initialize', [opts]);
        }
    })
    

    Then you would need to Navigate to Admin > Repair and Execute Quick Repair and Rebuild. 

    The dashboard grids should be not resizable. 

    I've also left you an another solution that resolves the bug on going in 10.3 dashlets. It allows only left, bottom and bottom left side to resize the dashlet. 

    Hope this helps Slight smile

    Best Regards

    Tevfik Tümer
    Senior Developer Support Engineer

Reply
  • Hi ,

    This can be done by customising dashboard-grid.js. 

    Locate the code block below to this path: custom/clients/base/layouts/dashboard-grid/dashboard-grid.js

    ({
        extendsFrom: "DashboardGridLayout",
        initialize(opts){
            // Solution #1. Completely disables resize
            this.defaultElementOptions['noResize'] = true;
            
            // Solution #2. Enable only left, bottom left, bottom
            // this.defaultElementOptions['resizeHandles'] = 's, sw, w'; // Only enables bottom, bottom left left resize.
            
            this._super('initialize', [opts]);
        }
    })
    

    Then you would need to Navigate to Admin > Repair and Execute Quick Repair and Rebuild. 

    The dashboard grids should be not resizable. 

    I've also left you an another solution that resolves the bug on going in 10.3 dashlets. It allows only left, bottom and bottom left side to resize the dashlet. 

    Hope this helps Slight smile

    Best Regards

    Tevfik Tümer
    Senior Developer Support Engineer

Children
No Data