{"id":13808825,"url":"https://github.com/chandumaram/tooltip-testing","last_synced_at":"2025-03-02T11:18:08.977Z","repository":{"id":213518743,"uuid":"734315126","full_name":"chandumaram/tooltip-testing","owner":"chandumaram","description":"Tooltip for Angular, forked from cm-angular-tooltip","archived":false,"fork":false,"pushed_at":"2024-03-21T09:00:53.000Z","size":754,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T06:48:13.147Z","etag":null,"topics":["angular","angular-tooltip","angular16","cm-angular-tooltip","tooltip","tooltip-library","tooltip-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cm-angular-tooltip?activeTab=readme","language":"TypeScript","has_issues":true,"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/chandumaram.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-21T11:31:30.000Z","updated_at":"2024-09-13T09:51:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f89fca4-e60e-4407-bd1d-491827a85069","html_url":"https://github.com/chandumaram/tooltip-testing","commit_stats":null,"previous_names":["chandumaram/tooltip-testing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandumaram%2Ftooltip-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandumaram%2Ftooltip-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandumaram%2Ftooltip-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandumaram%2Ftooltip-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chandumaram","download_url":"https://codeload.github.com/chandumaram/tooltip-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241494180,"owners_count":19971871,"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":["angular","angular-tooltip","angular16","cm-angular-tooltip","tooltip","tooltip-library","tooltip-plugin"],"created_at":"2024-08-04T01:01:52.737Z","updated_at":"2025-03-02T11:18:08.956Z","avatar_url":"https://github.com/chandumaram.png","language":"TypeScript","readme":"# Tooltip for Angular\n\nThe tooltip (cm-angular-tooltip) is a pop-up tip that appears when you hover over an item or click on it.\n\n## Installation\n\nInstall the npm package.\n\n    npm i cm-angular-tooltip\n\n        \n### `app.module.ts`\n```ts\nimport { TooltipModule } from 'cm-angular-tooltip';\n \n@NgModule({\n    imports: [ TooltipModule ]\n}) \n```\n\n## Angular Compatibility\n\n| Angular Version | cm-angular-tooltip |\n|-----------------|--------------------|\n| 16 | 3.0.0 |\n| 15 | 2.0.0 |\n| 14 | 1.0.0 |\n\n\n## Usage\n    \nOptions can be set in the directive tag, so they have the highest priority.\n\n```html\n\u003cspan tooltip=\"Tooltip\" placement=\"top\" [showDelay]=500\u003eTooltip on top\u003c/span\u003e\n```\n\nYou may pass as an object:\n\n```html\n\u003cspan tooltip=\"Tooltip\" [options]=\"myOptions\"\u003eTooltip on left\u003c/span\u003e\n```\n```ts\nmyOptions = {\n    'placement': 'left',\n    'showDelay': 500\n}\n```\n\nYou can pass HTML as content :\n\n```html\n\u003cspan tooltip=\"\u003cp\u003eHello i'm a \u003cstrong\u003ebold\u003c/strong\u003e text!\u003c/p\u003e\"\u003e\n  Tooltip with HTML content\n\u003c/span\u003e\n```\n\n```html\n\u003cng-template #HtmlContent\u003e\n  \u003cp\u003eHello i'm a \u003cstrong\u003ebold\u003c/strong\u003e text!\u003c/p\u003e\n\u003c/ng-template\u003e\n\n\u003cspan [tooltip]=\"HtmlContent\" contentType=\"template\"\u003e\n  Tooltip with template content\n\u003c/span\u003e\n```\n\n## Set default values\n\nCreate a file with your settings, for example:\n```ts\nimport { TooltipOptions } from 'cm-angular-tooltip';\n\nexport const MyDefaultTooltipOptions: TooltipOptions = {\n  'show-delay': 500\n}\n```\n    \nAnd pass your parameters when importing the module:\n```ts\nimport { TooltipModule, TooltipOptions } from 'cm-angular-tooltip';\nimport { MyDefaultTooltipOptions } from './my-default-options';\n \n@NgModule({\n    imports: [ \n      TooltipModule.forRoot(MyDefaultTooltipOptions as TooltipOptions)\n    ]\n})\n```\n\n## Properties\n| name             | type                                | default | description |\n|------------------|-------------------------------------|---------|-------------|\n| placement        | \"top\", \"bottom\", \"left\", \"right\"    | \"top\"   | The position of the tooltip.                |\n| autoPlacement    | boolean                             | true    | Place the tooltip so that it does not go beyond the borders of the browser window. |\n| showDelay       | number                              | 0       | The delay in ms before showing the tooltip. |\n| hideDelay       | number                              | 300     | The delay in ms before removing the tooltip. |\n| hideDelayTouchscreen | number                          | 0       | Delay in milliseconds before hiding the tooltip (for mobile devices). |\n| display          | boolean                             | true    | Tooltip availability for display.           |\n| displayTouchscreen | boolean                           | true    | Display the tooltip on mobile devices.      |\n| zIndex          | number                              | 0       | Z-index of the tooltip.                     |\n| trigger          | \"hover\", \"click\"                    | \"hover\" | Specifies how the tooltip is triggered. Control the closing time with \"hide-delay\". |\n| tooltipClass    | string                              |         | Classes to be passed to the tooltip.        |\n| animationDuration | number                            | 300     | The duration controls how long the animation takes to run from start to finish. |\n| theme            | \"dark\", \"light\"                     | \"dark\"  | Theme of tooltip background and text.       |\n| shadow           | boolean                             | true    | Shadow of the tooltip.                      |\n| offset           | number                              | 8       | Offset the tooltip relative to the item.    |\n| width            | number                              | undefined | Width of the tooltip.                     |\n| maxWidth        | number                              | 200     | Maximum width of the tooltip.               |\n| contentType     | \"string\", \"html', \"template\"        | \"string\" | The content type passed to the tooltip.    |\n| hideDelayAfterClick | number                           | 2000    | Tooltip hiding delay for \"click\" trigger.   |\n| pointerEvents    | \"auto\", \"none\"                      | \"none\"  | Defines whether or not an element reacts to pointer events. |\n| position         | {top: number, left: number}         | undefined | The tooltip coordinates relative to the browser window. |\n\n## Events\n\nWhen you call events, the delays that are specified in the options in the directive are taken into account. Default delay before tooltip hiding is 300 milliseconds.\n\n| Event                             | Description |\n|-----------------------------------|-------------|\n| {type: \"show\", position: DOMRect} | The event is called before the tooltip appears. |\n| {type: \"shown\", position: DOMRect} | The event is called after the animation of the appearance of the tooltip. |\n| {type: \"hide\", position: DOMRect} | The event is called before the tooltip is hidden. |\n| {type: \"hidden\", position: DOMRect} | The event is called after the animation of the tooltip is hidden. |\n\n## Methods\n\nIf you specified the directive options, they will be taken into account when calling methods. Including the delay before the appearance and hiding of the tooltip.\n\n| Method | Description |\n|--------|-------------|\n| show() | Shows the tooltip |\n| hide() | Hides the tooltip |\n\n\n## License\nMIT\n\n## Author\n- Maram Chandrasekhar Reddy [@chandumaram](https://github.com/chandumaram)\n","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Tooltips"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandumaram%2Ftooltip-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchandumaram%2Ftooltip-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandumaram%2Ftooltip-testing/lists"}