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
e347b62c
Commit
e347b62c
authored
Mar 17, 2020
by
Dominik Prokop
Committed by
Arve Knudsen
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TablePanel: Enable new units picker (#22833)
(cherry picked from commit
58298919
)
parent
36232857
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
public/app/plugins/panel/table/column_options.html
+1
-1
public/app/plugins/panel/table/column_options.ts
+5
-3
No files found.
public/app/plugins/panel/table/column_options.html
View file @
e347b62c
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<div
ng-if=
"style.type === 'number'"
>
<div
ng-if=
"style.type === 'number'"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-10"
>
Unit
</label>
<label
class=
"gf-form-label width-10"
>
Unit
</label>
<
div
class=
"gf-form-dropdown-typeahead width-16"
ng-model=
"style.unit"
dropdown-typeahead2=
"editor.unitFormats"
dropdown-typeahead-on-select=
"editor.setUnitFormat(style, $subItem)"
></div
>
<
unit-picker
onChange=
"editor.setUnitFormat(style)"
value=
"style.unit"
width=
"16"
></unit-picker
>
</div>
</div>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-10"
>
Decimals
</label>
<label
class=
"gf-form-label width-10"
>
Decimals
</label>
...
...
public/app/plugins/panel/table/column_options.ts
View file @
e347b62c
...
@@ -73,9 +73,11 @@ export class ColumnOptionsCtrl {
...
@@ -73,9 +73,11 @@ export class ColumnOptionsCtrl {
this
.
panelCtrl
.
render
();
this
.
panelCtrl
.
render
();
}
}
setUnitFormat
(
column
:
any
,
subItem
:
any
)
{
setUnitFormat
(
column
:
any
)
{
column
.
unit
=
subItem
.
value
;
return
(
value
:
any
)
=>
{
this
.
panelCtrl
.
render
();
column
.
unit
=
value
;
this
.
panelCtrl
.
render
();
};
}
}
addColumnStyle
()
{
addColumnStyle
()
{
...
...
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