{"id":23420909,"url":"https://github.com/nericode/nativescript-tooltip","last_synced_at":"2025-04-09T09:33:56.759Z","repository":{"id":42823434,"uuid":"267115974","full_name":"nericode/nativescript-tooltip","owner":"nericode","description":"NativeScript Tooltip - Android \u0026 iOS","archived":false,"fork":false,"pushed_at":"2023-01-07T18:34:22.000Z","size":2390,"stargazers_count":0,"open_issues_count":18,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T03:41:58.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nericode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-26T18:05:18.000Z","updated_at":"2021-05-22T23:41:16.000Z","dependencies_parsed_at":"2023-02-07T20:46:27.142Z","dependency_job_id":null,"html_url":"https://github.com/nericode/nativescript-tooltip","commit_stats":null,"previous_names":["nericodec/nativescript-tooltip"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nericode","download_url":"https://codeload.github.com/nericode/nativescript-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248012562,"owners_count":21033221,"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-12-23T02:13:10.582Z","updated_at":"2025-04-09T09:33:56.738Z","avatar_url":"https://github.com/nericode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tooltip {NS} ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)\n\n## Installation\n\nIdeally it would be something like:\n\n```javascript\ntns plugin add nativescript-tooltip-ns\n```\n\n## Screenshot\n\n\u003cimg alt=\"Android\" src=\"https://res.cloudinary.com/dem02bcqj/image/upload/v1591193248/WhatsApp_Image_2020-06-03_at_9.06.52_AM.jpg\" width=\"550\"\u003e\n\n## Usage\n\n```ts\nimport { TooltipNs } from \"nativescript-tooltip-ns\";\n\nvar tooltip = new TooltipNs();\nvar button = this.page.getViewById(\"label\");\n\ntooltip.show({\n  message: \"Hello! this is my tooltip...\",\n  view: button,\n  ios: {\n    hasInterval: false,\n    shadow: true,\n    cornerRadius: 0,\n    margin: [0, 0, 0, 0],\n    padding: [0, 0, 0, 0],\n    color: \"yellow\",\n    textColor: \"black\", // Optional\n  },\n  android: {\n    position: \"bottom\",\n    style: \"ToolTipLayoutCustomStyle\",\n    fitToScreen: true,\n  },\n});\n\nsetTimeout(() =\u003e {\n  tooltip.dismiss();\n}, 1500);\n```\n\nIn .html:\n\n```html\n\u003cGridLayout\u003e\n  \u003c!-- Ref id button --\u003e\n  \u003cbutton\n    id=\"button\"\n    text=\"Clickme\"\n    backgroundColor=\"black\"\n    color=\"white\"\n    (tap)=\"onShow()\"\n    height=\"40\"\n  \u003e\u003c/button\u003e\n\u003c/GridLayout\u003e\n```\n\nCustom Style(Only Android)\n\nIn App_Resources/Android/src/main/res/values/styles\n\n```xml\n\u003cstyle name=\"ToolTipLayoutCustomStyle\"\u003e\n    \u003citem name=\"ttlm_padding\"\u003e25dip\u003c/item\u003e\n    \u003citem name=\"ttlm_backgroundColor\"\u003e#000000\u003c/item\u003e\n    \u003citem name=\"android:textAppearance\"\u003e@style/TextAppearanceCustom\u003c/item\u003e\n\u003c/style\u003e\n\n\u003cstyle name=\"TextAppearanceCustom\" parent=\"TextAppearance.AppCompat.Inverse\"\u003e\n    \u003citem name=\"android:textColor\"\u003e@android:color/white\u003c/item\u003e\n\u003c/style\u003e\n```\n\n## API\n\n```ts\nexport interface Options {\n  message: string;\n  view: any;\n  ios?: {\n    hasInterval?: boolean;\n    interval?: number;\n    shadow?: boolean;\n    cornerRadius?: number;\n    padding: Array\u003cany\u003e;\n    margin: Array\u003cany\u003e;\n    color: string;\n    textColor?: string;\n  };\n  android?: {\n    position?: ToolTipPosition;\n    viewType?: ToolTipViewType;\n    duration?: number;\n    fadeDuration?: number;\n    width?: number;\n    delay?: number;\n    hideArrow?: boolean;\n    style?: string;\n    fitToScreen?: boolean;\n  };\n}\n\nexport declare type ToolTipPosition =\n  | \"left\"\n  | \"up\"\n  | \"right\"\n  | \"down\"\n  | \"top\"\n  | \"bottom\";\nexport declare type ToolTipViewType = \"native\";\n```\n\n## License\n\nApache License Version 2.0, January 2004\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnericode%2Fnativescript-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnericode%2Fnativescript-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnericode%2Fnativescript-tooltip/lists"}