nsPopover is a simple component for angularjs applications that adds small overlays of content, like those on the
iPad, to any element for housing secondary information.. It has only angularjs as dependency.
You can download all necessary nsPopover files manually or install it with bower:
You need only to include the
nsPopover.js (as minimal setup) to your project and then you can
start using the
nsPopover defines a simple set of attributes that can be used to customize the popover behavior.
The id of the template that contains the popover content. The content will be loaded through the
$http service and cached (content will not be loaded if it is already in
can be loaded through
path to external html template or
<script> tag with
Also it is possible to use simple strings as template together with
A flag that indicates if the
ns-popover-template is a plain string or not, default:
ns-popover-trigger specify how the popover is triggered. This can be any event that the associated
DOM element can trigger, default:
Specifies how to position the popover relative to the triggering element - top | bottom | left | right.
You can customize the
nsPopover through themes. You can use the
nsPopover to create your own theme, like so.
and them specify this theme on the HTML
Copyright (c) 2013, nohros.com email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.