@@ -20,7 +15,21 @@ Panels are the main building blocks of dashboards.
...
@@ -20,7 +15,21 @@ Panels are the main building blocks of dashboards.
## Panel development
## Panel development
Examples
### Scrolling
The grafana dashboard framework controls the panel height. To enable a scrollbar within the panel the PanelCtrl needs to set the scrollable static variable:
```javascript
exportclassMyPanelCtrlextendsPanelCtrl{
staticscrollable=true;
...
```
In this case, make sure the template has a single `<div>...</div>` root. The plugin loader will modifiy that element adding a scrollbar.