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
435aa88c
Commit
435aa88c
authored
Jul 06, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue_5372' of
https://github.com/kipe/grafana
into kipe-issue_5372
parents
782427b5
522a3408
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
public/app/plugins/panel/table/module.ts
+2
-1
public/app/plugins/panel/table/renderer.ts
+17
-0
No files found.
public/app/plugins/panel/table/module.ts
View file @
435aa88c
...
@@ -139,7 +139,8 @@ class TablePanelCtrl extends MetricsPanelCtrl {
...
@@ -139,7 +139,8 @@ class TablePanelCtrl extends MetricsPanelCtrl {
}
}
exportCsv
()
{
exportCsv
()
{
FileExport
.
exportTableDataToCsv
(
this
.
table
);
var
renderer
=
new
TableRenderer
(
this
.
panel
,
this
.
table
,
this
.
dashboard
.
isTimezoneUtc
());
FileExport
.
exportTableDataToCsv
(
renderer
.
render_values
());
}
}
link
(
scope
,
elem
,
attrs
,
ctrl
)
{
link
(
scope
,
elem
,
attrs
,
ctrl
)
{
...
...
public/app/plugins/panel/table/renderer.ts
View file @
435aa88c
...
@@ -141,4 +141,21 @@ export class TableRenderer {
...
@@ -141,4 +141,21 @@ export class TableRenderer {
return
html
;
return
html
;
}
}
render_values
()
{
let
rows
=
[];
for
(
var
y
=
0
;
y
<
this
.
table
.
rows
.
length
;
y
++
)
{
let
row
=
this
.
table
.
rows
[
y
];
let
new_row
=
[];
for
(
var
i
=
0
;
i
<
this
.
table
.
columns
.
length
;
i
++
)
{
new_row
.
push
(
this
.
formatColumnValue
(
i
,
row
[
i
]));
}
rows
.
push
(
new_row
);
}
return
{
columns
:
this
.
table
.
columns
,
rows
:
rows
,
};
}
}
}
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