-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit creates a bhInfo component that is simply a wrapper for popovers. Since this is a component, these popovers cannot have any knowledge of their parent scope. This component is ideal for informational popovers that only contain $translate filters. Closes #525.
- Loading branch information
Jonathan Niles
committed
Jun 28, 2016
1 parent
9caa027
commit f61e866
Showing
2 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
angular.module('bhima.components') | ||
.component('bhInfo', { | ||
template : | ||
'<span ' + | ||
' class="text-info fa fa-info-circle" ' + | ||
' uib-popover-template="$ctrl.template" ' + | ||
' popover-placement="right" ' + | ||
' popover-append-to-body="true" ' + | ||
' popover-trigger="mouseenter"> ' + | ||
'</span> ', | ||
bindings : { | ||
template: '@', | ||
direction: '@' | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters