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
c5435596
Commit
c5435596
authored
Oct 30, 2015
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added All Value support for custom type templating
parent
0a0a0776
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
public/app/features/templating/partials/editor.html
+17
-0
public/app/features/templating/templateValuesSrv.js
+5
-0
No files found.
public/app/features/templating/partials/editor.html
View file @
c5435596
...
@@ -146,6 +146,23 @@
...
@@ -146,6 +146,23 @@
</ul>
</ul>
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
</div>
</div>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 100px;"
>
<editor-checkbox
text=
"All value"
model=
"current.includeAll"
change=
"runQuery()"
></editor-checkbox>
</li>
<li
ng-show=
"current.includeAll"
>
<input
type=
"text"
class=
"input-xlarge tight-form-input"
style=
"width:364px"
ng-model=
'current.options[0].value'
></input>
</li>
<li
class=
"tight-form-item"
ng-show=
"current.includeAll"
>
All format
</li>
<li
ng-show=
"current.includeAll"
>
<select
class=
"input-medium tight-form-input last"
ng-model=
"current.allFormat"
ng-change=
"runQuery()"
ng-options=
"f for f in ['glob', 'wildcard', 'regex wildcard', 'regex values', 'lucene', 'pipe']"
></select>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
<div
ng-show=
"current.type === 'query'"
>
<div
ng-show=
"current.type === 'query'"
>
...
...
public/app/features/templating/templateValuesSrv.js
View file @
c5435596
...
@@ -115,6 +115,11 @@ function (angular, _, kbn) {
...
@@ -115,6 +115,11 @@ function (angular, _, kbn) {
if
(
variable
.
type
===
'interval'
)
{
if
(
variable
.
type
===
'interval'
)
{
self
.
updateAutoInterval
(
variable
);
self
.
updateAutoInterval
(
variable
);
}
}
if
(
variable
.
type
===
'custom'
&&
variable
.
includeAll
)
{
self
.
addAllOption
(
variable
);
}
};
};
this
.
updateOptions
=
function
(
variable
)
{
this
.
updateOptions
=
function
(
variable
)
{
...
...
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