aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeylor Ohmaly2014-02-06 12:36:07 -0200
committerNeylor Ohmaly2014-02-06 12:36:07 -0200
commit70469eef704a7ad1fdd23fdc3ff37fa3db0e1343 (patch)
tree73b86dc249c11ba3f3a97840dbbc2ce968cb51f5 /src
parent39b3c016edeaccd315ba899dc413d1eab80d8a85 (diff)
downloadnsPopover-70469eef704a7ad1fdd23fdc3ff37fa3db0e1343.tar.bz2
Added classes that allow the customization of the popover based on its position
Diffstat (limited to 'src')
-rw-r--r--src/nsPopover.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nsPopover.js b/src/nsPopover.js
index 4cb0779..738ccbf 100644
--- a/src/nsPopover.js
+++ b/src/nsPopover.js
@@ -100,6 +100,12 @@
$popover.addClass(options.theme);
}
+ // Add classes that identifies the pacement and alignment of the popver
+ // which allows the customization of the popover based on its position.
+ $popover
+ .addClass('ns-popover-' + placement_ + '-placement')
+ .addClass('ns-popover-' + align_ + '-align');
+
$timeout(function() {
$compile($popover)(scope);
});