///
import PanelMeta from 'app/features/panel/panel_meta2';
class PanelBaseCtrl {
constructor(private $scope) {
$scope.panelMeta = new PanelMeta({
panelName: 'Table',
editIcon: "fa fa-table",
fullscreen: true,
metricsEditor: true,
});
$scope.testProp = "hello";
}
}
class TestPanelCtrl extends PanelBaseCtrl {
constructor($scope) {
super($scope);
$scope.panelMeta.panelName = "Test";
}
}
function testPanelDirective() {
return {
restrict: 'E',
template: `
Test Panel, {{testProp}}
`,
controller: TestPanelCtrl,
controllerAs: 'ctrl',
};
}
export {
PanelBaseCtrl,
TestPanelCtrl,
testPanelDirective as panel
}