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
58298919
Unverified
Commit
58298919
authored
Mar 17, 2020
by
Dominik Prokop
Committed by
GitHub
Mar 17, 2020
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TablePanel: Enable new units picker (#22833)
parent
2fac8344
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
public/app/plugins/panel/table/column_options.html
+1
-1
public/app/plugins/panel/table/column_options.ts
+4
-2
No files found.
public/app/plugins/panel/table/column_options.html
View file @
58298919
...
...
@@ -58,7 +58,7 @@
<div
ng-if=
"style.type === 'number'"
>
<div
class=
"gf-form"
>
<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
class=
"gf-form"
>
<label
class=
"gf-form-label width-10"
>
Decimals
</label>
...
...
public/app/plugins/panel/table/column_options.ts
View file @
58298919
...
...
@@ -73,9 +73,11 @@ export class ColumnOptionsCtrl {
this
.
panelCtrl
.
render
();
}
setUnitFormat
(
column
:
any
,
subItem
:
any
)
{
column
.
unit
=
subItem
.
value
;
setUnitFormat
(
column
:
any
)
{
return
(
value
:
any
)
=>
{
column
.
unit
=
value
;
this
.
panelCtrl
.
render
();
};
}
addColumnStyle
()
{
...
...
Kornkitt Poolsup
@Doratong24
mentioned in commit
e347b62c
Mar 05, 2021
mentioned in commit
e347b62c
mentioned in commit e347b62ceed4da7ab3ec952c5fe74768b79ae24f
Toggle commit list
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