{"id":18389576,"url":"https://github.com/anseki/jquery-ui-tooltip-altposition","last_synced_at":"2025-06-12T20:35:56.780Z","repository":{"id":11556887,"uuid":"14042960","full_name":"anseki/jquery-ui-tooltip-altposition","owner":"anseki","description":"jQuery UI Tooltip which alters position according to the situation.","archived":false,"fork":false,"pushed_at":"2018-03-02T03:00:39.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T07:11:38.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://anseki.github.io/jquery-ui-tooltip-altposition/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anseki.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":"2013-11-01T12:53:13.000Z","updated_at":"2024-10-23T12:41:10.000Z","dependencies_parsed_at":"2022-09-11T11:00:49.379Z","dependency_job_id":null,"html_url":"https://github.com/anseki/jquery-ui-tooltip-altposition","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/anseki/jquery-ui-tooltip-altposition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fjquery-ui-tooltip-altposition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fjquery-ui-tooltip-altposition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fjquery-ui-tooltip-altposition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fjquery-ui-tooltip-altposition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anseki","download_url":"https://codeload.github.com/anseki/jquery-ui-tooltip-altposition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fjquery-ui-tooltip-altposition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259522628,"owners_count":22870501,"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-11-06T01:43:48.217Z","updated_at":"2025-06-12T20:35:55.776Z","avatar_url":"https://github.com/anseki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alter Position jQuery UI Tooltip\n\nAlter Position jQuery UI Tooltip Plugin to alters position according to the situation.  \nThe default position is under the element. It looks best position. But, it is not sometimes.  \nFor example, it overlap pulldown list of `select`, or it is too lower position under the high `textarea`.\n\n![jQuery UI Tooltip](sample-01.png)\n\nThis plugin alters position by specified conditions. (e.g. height, tag-name)  \n**See \u003ca href=\"http://anseki.github.io/jquery-ui-tooltip-altposition/\"\u003eDEMO\u003c/a\u003e**\n\n## Usage\n\n- Load the `jquery.ui.tooltip.altposition.min.js` script file after loading `jquery.ui.tooltip.js` etc.\n- The `altPosition` is added to Tooltip options. It accept the Object which can have following properties.\n\nThe position is altered to `altPosition.position` (alternative [option.position](http://api.jqueryui.com/tooltip/#option-position) Object of Tooltip) when any following conditions.\n\n+ The tag-name of the element is `altPosition.tagName`.\n+ `outerWidth` of the element is greater than or equal to `altPosition.minOuterWidth`\n+ `outerWidth` of the element is less than or equal to `altPosition.maxOuterWidth`\n+ `outerHeight` of the element is greater than or equal to `altPosition.minOuterHeight`\n+ `outerHeight` of the element is less than or equal to `altPosition.maxOuterHeight`\n+ `altPosition.callback` Function returns `true`\n\n*NOTE:* These are joined by *OR*. (The position is altered if one or more conditions.)\n\n## Example\n\n```js\n$('input,textarea,select').tooltip({\n  altPosition: {\n    minOuterHeight: 60,\n    tagName: 'select',\n    callback: function() { return this.element.val().length \u003e 20; },\n    position: {my: 'left+15 top', at: 'right top', collision: 'flipfit'} // Right side\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fjquery-ui-tooltip-altposition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanseki%2Fjquery-ui-tooltip-altposition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fjquery-ui-tooltip-altposition/lists"}