module.ts 590 B

12345678910111213141516171819202122232425
  1. ///<reference path="../../../headers/common.d.ts" />
  2. import {PanelDirective, MetricsPanelCtrl} from '../../../features/panel/panel';
  3. function optionsTab() {
  4. return {template: '<h2>options!</h2>' };
  5. }
  6. export class TestPanelCtrl extends MetricsPanelCtrl {
  7. constructor($scope) {
  8. super($scope);
  9. }
  10. initEditorTabs() {
  11. super.initEditorTabs();
  12. this.editorTabs.push({title: 'Options', directiveFn: optionsTab});
  13. }
  14. }
  15. class TestPanel extends PanelDirective {
  16. templateUrl = `app/plugins/panel/test/module.html`;
  17. controller = TestPanelCtrl;
  18. }
  19. export {TestPanel as Panel}