module.ts 541 B

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