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
36e80883
Commit
36e80883
authored
Aug 14, 2018
by
Marcus Efraimsson
Committed by
Torkel Ödegaard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't render hidden columns in table panel (#12911)
parent
277a696f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
public/app/plugins/panel/table/module.html
+1
-1
public/app/plugins/panel/table/renderer.ts
+4
-0
No files found.
public/app/plugins/panel/table/module.html
View file @
36e80883
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<table
class=
"table-panel-table"
>
<table
class=
"table-panel-table"
>
<thead>
<thead>
<tr>
<tr>
<th
ng-repeat=
"col in ctrl.table.columns"
ng-
hide=
"
col.hidden"
>
<th
ng-repeat=
"col in ctrl.table.columns"
ng-
if=
"!
col.hidden"
>
<div
class=
"table-panel-table-header-inner pointer"
ng-click=
"ctrl.toggleColumnSort(col, $index)"
>
<div
class=
"table-panel-table-header-inner pointer"
ng-click=
"ctrl.toggleColumnSort(col, $index)"
>
{{col.title}}
{{col.title}}
<span
class=
"table-panel-table-header-controls"
ng-if=
"col.sort"
>
<span
class=
"table-panel-table-header-controls"
ng-if=
"col.sort"
>
...
...
public/app/plugins/panel/table/renderer.ts
View file @
36e80883
...
@@ -238,6 +238,10 @@ export class TableRenderer {
...
@@ -238,6 +238,10 @@ export class TableRenderer {
column
.
hidden
=
false
;
column
.
hidden
=
false
;
}
}
if
(
column
.
hidden
===
true
)
{
return
''
;
}
if
(
column
.
style
&&
column
.
style
.
preserveFormat
)
{
if
(
column
.
style
&&
column
.
style
.
preserveFormat
)
{
cellClasses
.
push
(
'table-panel-cell-pre'
);
cellClasses
.
push
(
'table-panel-cell-pre'
);
}
}
...
...
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