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
cd8009ec
Commit
cd8009ec
authored
Aug 30, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #451 from rashidkpc/master
added tip directive for defining question mark tooltips
parents
838d78ce
c0a5b0af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
js/directives.js
+9
-0
No files found.
js/directives.js
View file @
cd8009ec
...
@@ -20,6 +20,15 @@ angular.module('kibana.directives', [])
...
@@ -20,6 +20,15 @@ angular.module('kibana.directives', [])
}
}
};
};
})
})
.
directive
(
'tip'
,
function
(
$compile
)
{
return
{
restrict
:
'E'
,
link
:
function
(
scope
,
elem
,
attrs
)
{
var
_t
=
'<i class="icon-question-sign" bs-tooltip="
\'
'
+
elem
.
text
()
+
'
\'
"></i>'
;
elem
.
replaceWith
(
$compile
(
angular
.
element
(
_t
))(
scope
));
}
};
})
.
directive
(
'addPanel'
,
function
(
$compile
)
{
.
directive
(
'addPanel'
,
function
(
$compile
)
{
return
{
return
{
restrict
:
'A'
,
restrict
:
'A'
,
...
...
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