Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ecdc730d
Commit
ecdc730d
authored
Jan 23, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
poc(): new panel system
parent
89270424
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
public/app/features/panel/panel_ctrl.ts
+16
-10
public/app/features/panel/partials/panel.html
+1
-1
No files found.
public/app/features/panel/panel_ctrl.ts
View file @
ecdc730d
...
...
@@ -3,19 +3,13 @@
import
PanelMeta
from
'./panel_meta2'
;
export
class
PanelCtrl
{
panelM
eta
:
any
;
m
eta
:
any
;
panel
:
any
;
row
:
any
;
dashboard
:
any
;
constructor
(
private
scope
)
{
this
.
panelMeta
=
new
PanelMeta
({
panelName
:
'Table'
,
editIcon
:
"fa fa-table"
,
fullscreen
:
true
,
metricsEditor
:
true
,
});
this
.
meta
=
new
PanelMeta
(
this
.
panel
);
this
.
publishAppEvent
(
'panel-instantiated'
,
{
scope
:
scope
});
}
...
...
@@ -23,11 +17,23 @@ export class PanelCtrl {
this
.
scope
.
$root
.
appEvent
(
evtName
,
evt
);
}
editPanel
(
)
{
changeView
(
fullscreen
,
edit
)
{
this
.
publishAppEvent
(
'panel-change-view'
,
{
fullscreen
:
true
,
edit
:
true
,
panelId
:
this
.
panel
.
id
fullscreen
:
fullscreen
,
edit
:
edit
,
panelId
:
this
.
panel
.
id
});
}
viewPanel
()
{
this
.
changeView
(
true
,
false
);
}
editPanel
()
{
this
.
changeView
(
true
,
true
);
}
exitFullscreen
()
{
this
.
changeView
(
false
,
false
);
}
}
public/app/features/panel/partials/panel.html
View file @
ecdc730d
...
...
@@ -32,7 +32,7 @@
</div>
</div>
<button
class=
"gf-box-header-close-btn"
ng-click=
"exitFullscreen();"
>
<button
class=
"gf-box-header-close-btn"
ng-click=
"
ctrl.
exitFullscreen();"
>
Back to dashboard
</button>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment