diff options
| author | Neylor Ohmaly | 2014-02-06 12:36:07 -0200 |
|---|---|---|
| committer | Neylor Ohmaly | 2014-02-06 12:36:07 -0200 |
| commit | 70469eef704a7ad1fdd23fdc3ff37fa3db0e1343 (patch) | |
| tree | 73b86dc249c11ba3f3a97840dbbc2ce968cb51f5 /src | |
| parent | 39b3c016edeaccd315ba899dc413d1eab80d8a85 (diff) | |
| download | nsPopover-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.js | 6 |
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);
});
|
