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
c0cf0cb8
Commit
c0cf0cb8
authored
Dec 05, 2015
by
Qtax
Committed by
bergquist
Dec 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an option to set a min-width for the graphs side table/area.
parent
311624be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
public/app/plugins/panels/graph/axisEditor.html
+7
-0
public/app/plugins/panels/graph/legend.js
+4
-0
No files found.
public/app/plugins/panels/graph/axisEditor.html
View file @
c0cf0cb8
...
@@ -181,6 +181,13 @@
...
@@ -181,6 +181,13 @@
<li
class=
"tight-form-item"
>
<li
class=
"tight-form-item"
>
<editor-checkbox
text=
"Right side"
model=
"panel.legend.rightSide"
change=
"render()"
></editor-checkbox>
<editor-checkbox
text=
"Right side"
model=
"panel.legend.rightSide"
change=
"render()"
></editor-checkbox>
</li>
</li>
<li
ng-if=
"panel.legend.rightSide"
class=
"tight-form-item"
>
Side width
</li>
<li
ng-if=
"panel.legend.rightSide"
style=
"width: 105px"
>
<input
type=
"number"
class=
"input-small tight-form-input"
placeholder=
"250"
bs-tooltip=
"'Set a min-width for the legend side table/block'"
data-placement=
"right"
ng-model=
"panel.legend.sideWidth"
ng-change=
"render()"
ng-model-onblur
>
</li>
</ul>
</ul>
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
</div>
</div>
...
...
public/app/plugins/panels/graph/legend.js
View file @
c0cf0cb8
...
@@ -101,6 +101,10 @@ function (angular, _, $) {
...
@@ -101,6 +101,10 @@ function (angular, _, $) {
$container
.
empty
();
$container
.
empty
();
// Set min-width if side style and there is a value, otherwise remove the CSS propery
var
width
=
panel
.
legend
.
rightSide
&&
panel
.
legend
.
sideWidth
?
panel
.
legend
.
sideWidth
+
"px"
:
""
;
$container
.
css
(
"min-width"
,
width
);
$container
.
toggleClass
(
'graph-legend-table'
,
panel
.
legend
.
alignAsTable
===
true
);
$container
.
toggleClass
(
'graph-legend-table'
,
panel
.
legend
.
alignAsTable
===
true
);
if
(
panel
.
legend
.
alignAsTable
)
{
if
(
panel
.
legend
.
alignAsTable
)
{
...
...
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