{"_attachments":{},"_id":"nx-popover","_rev":"1195689-61f2d2d3958f5014fc2fa6f5","author":{"name":"Neylor Ohmaly"},"description":"``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.","dist-tags":{"latest":"0.6.12"},"maintainers":[{"name":"pmoelgaard","email":"npm@petermolgaard.com"}],"name":"nx-popover","readme":"# nsPopover\n\n``nsPopover`` is a simple component for angularjs applications that adds small overlays of content, like those on the\niPad, to any element for housing secondary information.. It has only angularjs as dependency.\n\n### [Example] (http://nohros.com/nsPopover)\n\n## Getting Involved\nWe use the Collective Code Construction Contract (http://rfc.zeromq.org/spec:22).\ncollaboration model.\n\n## Install\n\nYou can download all necessary nsPopover files manually or install it with bower:\n\n```bash\nbower install nsPopover\nnpm install\ngrunt compile\n```\n\n## Usage\n\nYou need only to include the ``nsPopover.js`` (as minimal setup) to your project and then you can\nstart using the ``nsPopover`` directives.\n\n### Directive\n\n```javascript\nangular\n .module('nsPopoverExample', [\n 'nsPopover'\n ])\n\n .controller('MainCtrl', function($scope) {\n $scope.items = [{\n name: \"Action\"\n }, {\n name: \"Another action\"\n }, {\n name: \"Something else here\"\n }];\n });\n```\n\n``` html\n\n\n\n```\n\n### Attributes\n\n``nsPopover`` defines a simple set of attributes that can be used to customize the popover behavior.\n\n### `ns-popover {Boolean}`\n\nThe popover will show by default but ff you set `ns-popover` attribute equal to\na scope variable whose value is false, the popover will not be displayed. IE:\n\n```\n// In controller:\n$scope.displayPopover = false;\n\n// In HTML:\n
\n```\n\n### ``ns-popover-template {String}``\n\nThe id of the template that contains the popover content. The content will be loaded through the\nangular ``$http`` service and cached (content will not be loaded if it is already in ``$templateCache``). It\ncan be loaded through ``path`` to external html template or ``\n```\n\nAlso it is possible to use simple strings as template together with ``ns-popover-plain`` option.\n\n### ``ns-popover-plain {Boolean}``\n\nA flag that indicates if the ``ns-popover-template`` is a plain string or not, default: ``false``.\n\n### ``ns-popover-trigger {String}``\n\nThe ``ns-popover-trigger`` specify how the popover is triggered. This can be any event that the associated\nDOM element can trigger, default: ``click``.\n\n### ``ns-popover-timeout {Number}``\n\nThe ``ns-popover-timeout`` specify the time to wait before closing the popover and after the mouseout event is\ntriggered by the popover, default 1.5 seconds, use -1 to disable to timeout.\n\n### ``ns-popover-placement {String}``\n\nSpecifies how to position the popover relative to the triggering element. The placement attribute has the given\nsyntax: [position]|[alignment]. The [position] parameter specifies the position (top/right/bottom/left) of\nthe popover, and the alignment defines the alignment of the popover (left/center/right). The list below shows\nthe possible combinations of [position] and [alignment].\n\nPosition | Alignment | Description\n-------- |---------- | -----------\ntop | center | The popover will be positioned above the triggering element and its horizontal center will be aligned with the horizontal center of the triggering element.\ntop | left | The popover will be positioned above the triggering element and its left side will be aligned with the left side of the triggering element.\ntop | right | The popover will be positioned above the triggering element and its right side will be aligned with the right side of the triggering element.\nbottom | center | The popover will be positioned on the below the triggering element and its horizontal center will be aligned with the horizontal center of the triggering element.\nbottom | left | The popover will be positioned below the triggering element and its left side will be aligned with the left side of the triggering element.\nbottom | right | The popover will be positioned below the triggering element and its right side will be aligned with the right side of the triggering element.\nleft | center | The popover will be positioned on the left side of the triggering element and its vertical center will be aligned with vertical center of the triggering element.\nleft | top | The popover will be positioned on the left side of the triggering element and its top will be aligned with the top of the triggering element.\nleft | bottom | The popover will be positioned on the left side of the triggering element and its bottom will be aligned with the bottom of the triggering element.\nright | center | The popover will be positioned on the right side of the triggering element and its vertical center will be aligned with vertical center of the triggering element.\nright | top | The popover will be positioned on the right side of the triggering element and its top will be aligned with the top of the triggering element.\nright | bottom | The popover will be positioned on the right side of the triggering element and its bottom will be aligned with the bottom of the triggering element.\n\n### ``ns-popover-hide-on-click {Boolean}``\n\nThe ``ns-popover-hide-on-click`` specify whether to close the popover when clicking on it, default: ``true``. This\nallows for element-targeted closing of the popover (e.g via a close button within the popover element).\n\n### ``ns-popover-mouse-relative {{String}}``\n\nLocks the position relative to the mouse. The following are possible values:\n * x - Constraints the x axis to follow the mouse.\n * y - Constraints the y axis to follow the mouse.\n * xy - Constraints both the x and y axis to follow the mouse.\n\n### ``ns-popover-group {String}``\n\nThe ``ns-popover-group`` specifies the group of popovers which should be closed when this instance is shown. This allows\nthe construction of popovers that acts like a modal dialog.\n\n### Programmatic Hiding of the Popover\n\nRegister the ``hidePopover()`` function against a ``ng-click`` directive to hide the popover when a specific element is clicked (e.g. a close button):\n\n```html\n\n```\n\nThis button lives within the popover template.\n\n### Themes\n\nYou can customize the ``nsPopover`` through themes. You can use the ``nsPopover`` to create your own theme, like so.\n\n```scss\n.ns-popover-custom-theme {\n ul, .list {\n }\n\n li, .list-item {\n list-style-type: none;\n\n a {\n &:hover {\n }\n }\n }\n}\n```\n\nand them specify this theme on the HTML\n\n```html\n \n```\n\n## License\n\nMIT Licensed\n\nCopyright (c) 2013, nohros.com contact@nohros.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","time":{"created":"2022-01-27T17:13:55.283Z","modified":"2022-01-27T17:13:55.283Z","0.6.12":"2016-09-01T04:24:20.381Z"},"versions":{"0.6.12":{"author":{"name":"Neylor Ohmaly"},"contributors":[{"name":"Peter Andreas Moelgaard"}],"main":"src/nsPopover.js","name":"nx-popover","version":"0.6.12","homepage":"https://github.com/nexoes/nsPopover","licenses":{"type":"MIT","url":"https://github.com/nexoes/nsPopover/master/LICENSE"},"bugs":{"url":"https://github.com/nexoes/nsPopover/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/nexoes/nsPopover.git"},"dependencies":{},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-clean":"~0.4.1","grunt-contrib-copy":"~0.4.1","grunt-contrib-jshint":"~0.4.3","grunt-contrib-concat":"~0.3.0","grunt-contrib-watch":"~0.4.0","grunt-contrib-uglify":"~0.2.0","grunt-ngmin":"0.0.2","grunt-conventional-changelog":"~0.1.1","grunt-bump":"0.0.6","grunt-contrib-sass":"~0.5.0"},"private":false,"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"a911db18569f938edc3f8b6dab0ae2411bdf123c","description":"``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.","_id":"nx-popover@0.6.12","scripts":{},"_shasum":"b171ca45633cb439e5c07dcfd850c45fb404991a","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"pmoelgaard","email":"npm@petermolgaard.com"},"dist":{"shasum":"b171ca45633cb439e5c07dcfd850c45fb404991a","tarball":"https://registry.npmmirror.com/nx-popover/-/nx-popover-0.6.12.tgz","size":591564,"integrity":"sha512-woh+BlO7szSCSNzpAdyMu0DxTo4BTXZambaqlqSqAb9r5yVnlIceo3qVIc6+IL0i1vUqb0zaReht5oNM8Ne41A=="},"maintainers":[{"name":"pmoelgaard","email":"npm@petermolgaard.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nx-popover-0.6.12.tgz_1472703860120_0.6530529060401022"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T15:02:52.390Z"}},"_source_registry_name":"default"}