{"id":13497243,"url":"https://github.com/pleerock/ngx-popover","last_synced_at":"2025-03-28T21:32:13.576Z","repository":{"id":37270474,"uuid":"61282176","full_name":"pleerock/ngx-popover","owner":"pleerock","description":"Simple popover control for your angular2 applications using bootstrap3. Does not depend of jquery.","archived":true,"fork":false,"pushed_at":"2018-11-27T23:08:56.000Z","size":93,"stargazers_count":111,"open_issues_count":31,"forks_count":106,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-19T23:04:28.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pleerock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-16T09:59:21.000Z","updated_at":"2025-03-12T03:05:41.000Z","dependencies_parsed_at":"2022-08-24T15:04:42.522Z","dependency_job_id":null,"html_url":"https://github.com/pleerock/ngx-popover","commit_stats":null,"previous_names":["pleerock/ng2-popover"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-popover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-popover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-popover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-popover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pleerock","download_url":"https://codeload.github.com/pleerock/ngx-popover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246105411,"owners_count":20724307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T20:00:27.305Z","updated_at":"2025-03-28T21:32:13.322Z","avatar_url":"https://github.com/pleerock.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003e This repository is for demonstration purposes of how it can be implemented in Angular and is not maintaned.\nPlease fork and maintain your own version of this repository.\n\n# ngx-popover\n\nSimple popover control for your angular2 applications using bootstrap3. Does not depend of jquery.\nIf you don't want to use it without bootstrap - simply create proper css classes. Please star a project if you liked it,\nor create an issue if you have problems with it.\n\nsee [DEMO](http://plnkr.co/edit/tmGQ43m3OGhn8uoAYWua?p=preview).\n\n![angular 2 popover](https://raw.githubusercontent.com/pleerock/ngx-popover/master/resources/popover-example.png)\n\n## Installation\n\n1. Install npm module:\n    \n    `npm install ngx-popover --save`\n\n2. If you are using system.js you may want to add this into `map` and `package` config:\n    \n    ```json\n    {\n        \"map\": {\n            \"ngx-popover\": \"node_modules/ngx-popover\"\n        },\n        \"packages\": {\n            \"ngx-popover\": { \"main\": \"index.js\", \"defaultExtension\": \"js\" }\n        }\n    }\n    ```\n\n## Usage\n\nImport `PopoverModule` in your app and start using a component:\n\n```html\n\u003cdiv popover=\"content to be shown in the popover\"\n     popoverTitle=\"Popover header\"\n     popoverPlacement=\"top\"\n     [popoverOnHover]=\"false\"\n     [popoverCloseOnClickOutside]=\"true\"\n     [popoverCloseOnMouseOutside]=\"false\"\n     [popoverDisabled]=\"false\"\n     [popoverAnimation]=\"true\"\n     [popoverDismissTimeout]=\"1000\"\u003e\n    element on which this popover is applied.\n\u003c/div\u003e\n```\n\nExample of usage with dynamic html content:\n\n```html\n\u003cpopover-content #myPopover \n                title=\"Popover title\" \n                placement=\"left\"\n                [animation]=\"true\" \n                [closeOnClickOutside]=\"true\" \u003e\n    \u003cb\u003eVery\u003c/b\u003e \u003cspan style=\"color: #C21F39\"\u003eDynamic\u003c/span\u003e \u003cspan style=\"color: #00b3ee\"\u003eReusable\u003c/span\u003e\n    \u003cb\u003e\u003ci\u003e\u003cspan style=\"color: #ffc520\"\u003ePopover With\u003c/span\u003e\u003c/i\u003e\u003c/b\u003e \u003csmall\u003eHtml support\u003c/small\u003e.\n\u003c/popover-content\u003e\n\n\u003cbutton [popover]=\"myPopover\"\u003eelement on which this popover is applied.\u003c/button\u003e\n```\n\n* `\u003cdiv popover\u003e`:\n    * `popover=\"string\"` The message to be shown in the popover.\n    * `popoverTitle=\"string\"` Popover title text.\n    * `popoverPlacement=\"top|bottom|left|right|auto|auto top|auto bottom|auto left|auto right\"` Indicates where the popover should be placed. When using **\"auto\"** modifier, will show in opposite direction if not enough room. Default is **\"bottom\"**.\n    * `[popoverDisabled]=\"true|false\"` Indicates if popover should be disabled. If popover is disabled then it will not be shown. Default is **false**\n    * `[popoverAnimation]=\"true|false\"` Indicates if all popover should be shown with animation or not. Default is **true**.\n    * `[popoverOnHover]=\"true|false\"` If set to true then popover will open on mouse over instead of mouse click. Default is **false**.\n    * `[popoverCloseOnMouseOutside]=\"true|false\"` Indicates if popover should be closed when user mouse outside of it. Default is **false**.\n    * `[popoverCloseOnClickOutside]=\"true|false\"` Indicates if popover should be closed when user click outside of it. Default is **false**.\n    * `[popoverDismissTimeout]=\"number\"` Used to automatically dismiss popover after given amount of time. Default is **0**, means disabled.\n* `\u003cpopover-content\u003e`:\n    * `placement=\"top|bottom|left|right|auto|auto top|auto bottom|auto left|auto right\"` Indicates where the popover should be placed. When using **\"auto\"** modifier, will show in opposite direction if not enough room. Default is **\"bottom\"**.\n    * `[animation]=\"true|false\"` Indicates if all popover should be shown with animation or not. Default is **true**.\n    * `[closeOnMouseOutside]=\"true|false\"` Indicates if popover should be closed when user mouse outside of it. Default is **false**.\n    * `[closeOnClickOutside]=\"true|false\"` Indicates if popover should be closed when you click outside of it. Default is **false**.\n\n## Sample\n\n```typescript\nimport {Component} from \"@angular/core\";\nimport {PopoverModule} from \"ngx-popover\";\n\n@Component({\n    selector: \"app\",\n    template: `\n\u003cdiv class=\"container\"\u003e\n\n    \u003c!-- regular popover --\u003e\n    \u003cp\u003e\n        It is a long established \u003cspan popover=\"Hello fact!\" popoverTitle=\"Fact #1\"\u003e\u003cb\u003eclick this fact\u003c/b\u003e\u003c/span\u003e that a reader will be distracted by the readable content of a page when looking at its layout.\n        The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.\n        \u003cspan popover=\"many, but not all\" popoverPlacement=\"left\"\u003e\u003cb\u003eMany desktop\u003c/b\u003e\u003c/span\u003e publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy.\n        \u003cspan popover=\"various, but not all\" popoverPlacement=\"right\"\u003e\u003cb\u003eVarious versions\u003c/b\u003e\u003c/span\u003e have evolved over the years, sometimes by accident, \u003cspan popover=\"another hint\" popoverPlacement=\"top\"\u003e\u003cb\u003esometimes on purpose\u003c/b\u003e\u003c/span\u003e (injected humour and the like)\n    \u003c/p\u003e\n\n    \u003cbr/\u003e\n    \u003cbutton popover=\"Hello popover. Now click outside.\" [popoverCloseOnClickOutside]=\"true\"\u003e\n        click to open popover that will be closed when you click outside of it.\n    \u003c/button\u003e\n\n    \u003c!-- popover with dynamic html content --\u003e\n    \u003cbr/\u003e\u003cbr/\u003e\n    \u003cdiv\u003e\n        \u003cpopover-content #myPopover\n            title=\"this header can be omitted\"\n            [closeOnClickOutside]=\"true\"\u003e\n            \u003cb\u003eVery\u003c/b\u003e \u003cspan style=\"color: #C21F39\"\u003eDynamic\u003c/span\u003e \u003cspan style=\"color: #00b3ee\"\u003eReusable\u003c/span\u003e\n            \u003cb\u003e\u003ci\u003e\u003cspan style=\"color: #ffc520\"\u003ePopover With\u003c/span\u003e\u003c/i\u003e\u003c/b\u003e \u003csmall\u003eHtml support\u003c/small\u003e.\n            Click outside of this popover and it will be dismissed automatically.\n        \u003c/popover-content\u003e\n\n        \u003cbutton [popover]=\"myPopover\"\u003eclick this button to see a popover\u003c/button\u003e\n    \u003c/div\u003e\n\n    \u003c!-- popover show on hover --\u003e\n    \u003cbr/\u003e\n    \u003cdiv\u003e\n        \u003cbutton popover=\"Hello popover\" [popoverOnHover]=\"true\"\u003ehover this button to see a popover\u003c/button\u003e\n    \u003c/div\u003e\n\n    \u003c!-- popover show on hover and hide only when mouse over outside of the popover --\u003e\n    \u003cbr/\u003e\n    \u003cdiv\u003e\n        \u003cbutton popover=\"Hello popover\"\n                popoverPlacement=\"right\"\n                [popoverOnHover]=\"true\"\n                [popoverCloseOnMouseOutside]=\"true\"\u003e\n            hover this button to see a popover, allows to create interactive popovers\n        \u003c/button\u003e\n    \u003c/div\u003e\n\n    \u003c!-- popover show on hover --\u003e\n    \u003cbr/\u003e\n    \u003cdiv\u003e\n        \u003cbutton popover=\"Hello dismissible popover\" [popoverDismissTimeout]=\"2000\"\u003eclick to see this popover. This popover will be dismissed in two seconds\u003c/button\u003e\n    \u003c/div\u003e\n\n\u003c/div\u003e\n`\n})\nexport class App {\n\n}\n\n@NgModule({\n    imports: [\n        // ...\n        PopoverModule\n    ],\n    declarations: [\n        App\n    ],\n    bootstrap: [\n        App\n    ]\n})\nexport class AppModule {\n\n}\n```\n\nTake a look on samples in [./sample](https://github.com/pleerock/ngx-popover/tree/master/sample) for more examples of\nusages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleerock%2Fngx-popover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpleerock%2Fngx-popover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleerock%2Fngx-popover/lists"}