{"id":13497228,"url":"https://github.com/pleerock/ngx-tooltip","last_synced_at":"2025-03-28T21:32:12.147Z","repository":{"id":65411345,"uuid":"61278587","full_name":"pleerock/ngx-tooltip","owner":"pleerock","description":"Simple tooltip control for your angular2 applications using bootstrap3. Does not depend of jquery.","archived":true,"fork":false,"pushed_at":"2017-04-03T07:55:12.000Z","size":87,"stargazers_count":84,"open_issues_count":15,"forks_count":63,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T06:50:08.093Z","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:08:26.000Z","updated_at":"2025-01-31T21:02:49.000Z","dependencies_parsed_at":"2023-01-22T06:55:15.456Z","dependency_job_id":null,"html_url":"https://github.com/pleerock/ngx-tooltip","commit_stats":null,"previous_names":["pleerock/ng2-tooltip"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleerock%2Fngx-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pleerock","download_url":"https://codeload.github.com/pleerock/ngx-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246105393,"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.090Z","updated_at":"2025-03-28T21:32:11.853Z","avatar_url":"https://github.com/pleerock.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized","UI Components"],"sub_categories":["Uncategorized","Tooltip"],"readme":"\u003e This repository is for demonstration purposes of how it can be implemented in Angular and is not maintaned. Please fork and maintain your own version of this repository.\n\n# ngx-tooltip\n\nSimple tooltip control for your angular2 applications using bootstrap3. Does not depend of jquery.\nIf you want to use it without bootstrap - simply create proper css classes. Please star a project if you liked it, or create an issue if you have problems with it.\n\n![angular 2 tooltip](https://raw.githubusercontent.com/pleerock/ngx-tooltip/master/resources/tooltip-example.png)\n\n## Installation\n\n1. Install npm module:\n\n    `npm install ngx-tooltip --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-tooltip\": \"node_modules/ngx-tooltip\"\n        },\n        \"packages\": {\n            \"ngx-tooltip\": { \"main\": \"index.js\", \"defaultExtension\": \"js\" }\n        }\n    }\n    ```\n\n## Usage\n\nExample of simple usage:\n\n```html\n\u003cspan tooltip=\"content to be shown in the tooltip\"\n      [tooltipDisabled]=\"false\"\n      [tooltipAnimation]=\"true\"\n      tooltipPlacement=\"top\"\u003e\n    element on which this tooltip is applied.\n\u003c/span\u003e\n```\n\nExample of usage with dynamic html content:\n\n```html\n\u003ctooltip-content #myTooltip [animation]=\"true\" placement=\"left\"\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\"\u003eTooltip With\u003c/span\u003e\u003c/i\u003e\u003c/b\u003e \u003csmall\u003eHtml support\u003c/small\u003e.\n\u003c/tooltip-content\u003e\n\n\u003cbutton [tooltip]=\"myTooltip\"\u003eelement on which this tooltip is applied.\u003c/button\u003e\n```\n\n* `\u003cspan tooltip\u003e`:\n    * `tooltip=\"string\"` The message to be shown in the tooltip.\n    * `[tooltipDisabled]=\"true|false\"` Indicates if tooltip should be disabled. If tooltip is disabled then it will not be shown. Default is **false**\n    * `[tooltipAnimation]=\"true|false\"` Indicates if all tooltip should be shown with animation or not. Default is **true**.\n    * `tooltipPlacement=\"top|bottom|left|right\"` Indicates where the tooltip should be placed. Default is **\"bottom\"**.\n* `\u003ctooltip-content\u003e`:\n    * `[animation]=\"true|false\"` Indicates if all tooltip should be shown with animation or not. Default is **true**.\n    * `placement=\"top|bottom|left|right\"` Indicates where the tooltip should be placed. Default is **\"bottom\"**.\n\n## Sample\n\n```typescript\nimport {Component} from \"@angular/core\";\nimport {TooltipModule} from \"ngx-tooltip\";\n\n@Component({\n    selector: \"app\",\n    template: `\n\u003cdiv class=\"container\"\u003e\n\n    \u003c!-- regular tooltip --\u003e\n    \u003cp\u003e\n        It is a long established \u003cspan tooltip=\"Hello fact!\"\u003e\u003cb\u003efact\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 tooltip=\"many, but not all\" tooltipPlacement=\"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 tooltip=\"various, but not all\" tooltipPlacement=\"right\"\u003e\u003cb\u003eVarious versions\u003c/b\u003e\u003c/span\u003e have evolved over the years, sometimes by accident, \u003cspan tooltip=\"another hint\" tooltipPlacement=\"top\"\u003e\u003cb\u003esometimes on purpose\u003c/b\u003e\u003c/span\u003e (injected humour and the like)\n    \u003c/p\u003e\n\n    \u003c!-- tooltip with dynamic html content --\u003e\n    \u003cdiv\u003e\n        \u003ctooltip-content #myTooltip\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\"\u003eTooltip With\u003c/span\u003e\u003c/i\u003e\u003c/b\u003e \u003csmall\u003eHtml support\u003c/small\u003e.\n        \u003c/tooltip-content\u003e\n\n        \u003cbutton [tooltip]=\"myTooltip\"\u003ehover this button to see a tooltip\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        TooltipModule\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-tooltip/tree/master/sample) for more examples of\nusages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleerock%2Fngx-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpleerock%2Fngx-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleerock%2Fngx-tooltip/lists"}