Sisense dashboards have left and right panels. Left panel is to display list of dashboards and Right panel is for dashboard filters. These panels are always displayed unless we added parameters to hide it in URL.
Here is a script to Hide these panels
Steps:
Create dashboard
Add below script to dashboard
Refresh the dashboard
setTimeout(()=>{
//Collapse dashboard panel (left)
if (!$('#prism-leftview.collapsed-pane')[0]){
$( "#prism-leftview .trillapser-container" ).trigger( "click" );
}
//Hide arrow button to prevent expand the panel again
$('.trillapser-container.right').css('display', 'none')
//Collapse filter panel (right)
if (!$('#prism-rightview.collapsed-pane')[0]){
$( "#prism-rightview .trillapser-container" ).trigger( "click" );
}
//Hide arrow button to prevent expand the panel again
$('.trillapser-container.left').css('display', 'none')
}, 1)
Nice and tidy script. Thank you!