mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
react panels wip
This commit is contained in:
parent
cec70c1ed8
commit
2f5bcd37ec
@ -11,9 +11,15 @@ interface PanelEditorProps {
|
||||
export class PanelEditor extends React.Component<PanelEditorProps, any> {
|
||||
queryElement: any;
|
||||
queryComp: AngularComponent;
|
||||
tabs: any[];
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.tabs = [
|
||||
{ id: 'queries', text: 'Queries', icon: 'fa fa-database' },
|
||||
{ id: 'viz', text: 'Visualization', icon: 'fa fa-line-chart' },
|
||||
];
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@ -37,6 +43,8 @@ export class PanelEditor extends React.Component<PanelEditorProps, any> {
|
||||
this.queryComp = loader.load(this.queryElement, scopeProps, template);
|
||||
}
|
||||
|
||||
onChangeTab = tabName => {};
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="tabbed-view tabbed-view--panel-edit-new">
|
||||
|
Loading…
Reference in New Issue
Block a user