Kaynağa Gözat

react panels wip

Torkel Ödegaard 7 yıl önce
ebeveyn
işleme
2f5bcd37ec

+ 8 - 0
public/app/features/dashboard/dashgrid/PanelEditor.tsx

@@ -11,9 +11,15 @@ interface PanelEditorProps {
 export class PanelEditor extends React.Component<PanelEditorProps, any> {
 export class PanelEditor extends React.Component<PanelEditorProps, any> {
   queryElement: any;
   queryElement: any;
   queryComp: AngularComponent;
   queryComp: AngularComponent;
+  tabs: any[];
 
 
   constructor(props) {
   constructor(props) {
     super(props);
     super(props);
+
+    this.tabs = [
+      { id: 'queries', text: 'Queries', icon: 'fa fa-database' },
+      { id: 'viz', text: 'Visualization', icon: 'fa fa-line-chart' },
+    ];
   }
   }
 
 
   componentDidMount() {
   componentDidMount() {
@@ -37,6 +43,8 @@ export class PanelEditor extends React.Component<PanelEditorProps, any> {
     this.queryComp = loader.load(this.queryElement, scopeProps, template);
     this.queryComp = loader.load(this.queryElement, scopeProps, template);
   }
   }
 
 
+  onChangeTab = tabName => {};
+
   render() {
   render() {
     return (
     return (
       <div className="tabbed-view tabbed-view--panel-edit-new">
       <div className="tabbed-view tabbed-view--panel-edit-new">