Taking our example plugin from before, we can alter how Minerva displays different panels.

Let’s pretend our use case of Minerva deems the Jobs Panel useless, and is more focused on the datasets available. In this case one might want to disable the Jobs Panel entirely, and move the datasets panel to the top.

From your plugin root, create a JavaScript file at web_client/js/some-file.js and add the following code:

girder.events.once('m:pre-render-panel-groups',function(sessionView){varleftPanelGroup=sessionView.getPanelGroup('m-left-panel-group');// Disable/remove the jobs panelsessionView.disablePanel('m-jobs-panel');// Move the 'Available Datasets' panel to the topleftPanelGroup.panelViews.sort(function(a,b){if(a.id==='m-data-panel'){return-1;}elseif(b.id==='m-data-panel'){return1;}else{return0;}});});

Above we utilize the m:pre-render-panel-groups event to hook into Minerva before any panels are actually rendered, this gives full control over what the final layout looks like.