You can use this script in order to expand & collapse section on the dashboard to keep it above the fold.
1. Create a text widget
2. Copy & paste the script below on the widget script
widget.on('refreshed', function() {
let isHidden = 1
$('widget[widgetid="5eeb45ee2a5a197a6083b318"]').slideUp(200);
$('widget[widgetid="5eeb45ee2a5a197a6083b31c"]').slideUp(200);
isHidden = 0
$(element).on("click", function() {
if ( isHidden == 1)
{
$('widget[widgetid="5eeb45ee2a5a197a6083b318"]').slideUp(200);
$('widget[widgetid="5eeb45ee2a5a197a6083b31c"]').slideUp(200);
isHidden = 0
}
else
{
$('widget[widgetid="5eeb45ee2a5a197a6083b318"]').slideDown(200, ()=>{prism.activeDashboard.widgets.$$widgets.find(w => w.oid === '5eeb45ee2a5a197a6083b318').redraw();});
$('widget[widgetid="5eeb45ee2a5a197a6083b31c"]').slideDown(200, ()=>{prism.activeDashboard.widgets.$$widgets.find(w => w.oid === '5eeb45ee2a5a197a6083b31c').redraw();});
isHidden = 1
}
});
});
2. Change the widgetIDs you'd like to expand/collapse (make sure there is a line per each widgetID). - Note that you'll need to update 4 places for each widgetID
3. Save the script
3. Refresh the dashboard