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
37d75905
Commit
37d75905
authored
Jul 06, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added min span option for panel repeater, #1888
parent
19812feb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
public/app/features/dashboard/dynamicDashboardSrv.js
+1
-1
public/app/partials/panelgeneral.html
+8
-0
No files found.
public/app/features/dashboard/dynamicDashboardSrv.js
View file @
37d75905
...
...
@@ -164,7 +164,7 @@ function (angular, _) {
_
.
each
(
selected
,
function
(
option
,
index
)
{
var
copy
=
self
.
getPanelClone
(
panel
,
row
,
index
);
copy
.
span
=
12
/
selected
.
length
;
copy
.
span
=
Math
.
max
(
12
/
selected
.
length
,
panel
.
minSpan
)
;
copy
.
scopedVars
=
copy
.
scopedVars
||
{};
copy
.
scopedVars
[
variable
.
name
]
=
option
;
});
...
...
public/app/partials/panelgeneral.html
View file @
37d75905
...
...
@@ -42,6 +42,14 @@
<option
value=
""
></option>
</select>
</li>
<li
class=
"tight-form-item"
>
Min span
</li>
<li>
<select
class=
"input-small tight-form-input last"
ng-model=
"panel.minSpan"
ng-options=
"f for f in [1,2,3,4,5,6,7,8,9,10,11,12]"
>
<option
value=
""
></option>
</select>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
...
...
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