mirror of https://github.com/grafana/grafana
parent
775c0ff2f1
commit
0e3c0fcc2e
@ -0,0 +1,8 @@ |
||||
<div ng-controller='AnnotationsCtrl' ng-init="init()"> |
||||
|
||||
<div class="submenu-toggle"> |
||||
<label class="small" for="showAnnotations">Hide</label> |
||||
<input type="checkbox" id="showAnnotations"></label> |
||||
</div> |
||||
|
||||
</div> |
@ -0,0 +1,44 @@ |
||||
/* |
||||
|
||||
## annotations |
||||
|
||||
*/ |
||||
define([ |
||||
'angular', |
||||
'app', |
||||
'underscore' |
||||
], |
||||
function (angular, app, _) { |
||||
'use strict'; |
||||
|
||||
var module = angular.module('kibana.panels.annotations', []); |
||||
app.useModule(module); |
||||
|
||||
module.controller('AnnotationsCtrl', function($scope) { |
||||
|
||||
$scope.panelMeta = { |
||||
status : "Stable", |
||||
description : "Annotations" |
||||
}; |
||||
|
||||
// Set and populate defaults
|
||||
var _d = { |
||||
}; |
||||
_.defaults($scope.panel,_d); |
||||
|
||||
$scope.init = function() { |
||||
$scope.panel.annotations = [ |
||||
{ |
||||
type: 'graphite-target', |
||||
target: 'metric' |
||||
}, |
||||
{ |
||||
type: 'graphite-target', |
||||
target: 'metric2' |
||||
} |
||||
]; |
||||
}; |
||||
|
||||
|
||||
}); |
||||
}); |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue