mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add keyboard shotcuts for collapse/expand rows
This commit is contained in:
parent
e3b71ed95e
commit
5a30b08b14
@ -187,6 +187,20 @@ export class KeybindingSrv {
|
||||
}
|
||||
});
|
||||
|
||||
// collapse all rows
|
||||
this.bind('r C', () => {
|
||||
_.each(dashboard.rows, function(row) {
|
||||
row.collapse = true;
|
||||
});
|
||||
});
|
||||
|
||||
// expand all rows
|
||||
this.bind('r E', () => {
|
||||
_.each(dashboard.rows, function(row) {
|
||||
row.collapse = false;
|
||||
});
|
||||
});
|
||||
|
||||
this.bind('d r', () => {
|
||||
scope.broadcastRefresh();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user