{"id":15015848,"url":"https://github.com/yapplabs/ember-tether","last_synced_at":"2025-05-15T19:09:03.478Z","repository":{"id":32095724,"uuid":"35667912","full_name":"yapplabs/ember-tether","owner":"yapplabs","description":"Tether an element to another element in the DOM","archived":false,"fork":false,"pushed_at":"2024-12-20T16:12:50.000Z","size":1767,"stargazers_count":119,"open_issues_count":18,"forks_count":34,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-12T03:09:33.954Z","etag":null,"topics":["ember","ember-cli"],"latest_commit_sha":null,"homepage":null,"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/yapplabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2015-05-15T10:19:57.000Z","updated_at":"2024-12-20T16:12:55.000Z","dependencies_parsed_at":"2023-10-02T04:32:29.877Z","dependency_job_id":"344c983b-0725-4d3e-bca4-1bf1583ec7c3","html_url":"https://github.com/yapplabs/ember-tether","commit_stats":{"total_commits":92,"total_committers":21,"mean_commits":4.380952380952381,"dds":0.7282608695652174,"last_synced_commit":"7215dc7ecca697fa252148c5b6277b50d6eef866"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapplabs%2Fember-tether","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapplabs%2Fember-tether/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapplabs%2Fember-tether/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapplabs%2Fember-tether/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yapplabs","download_url":"https://codeload.github.com/yapplabs/ember-tether/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254404357,"owners_count":22065641,"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":["ember","ember-cli"],"created_at":"2024-09-24T19:48:02.966Z","updated_at":"2025-05-15T19:09:03.425Z","avatar_url":"https://github.com/yapplabs.png","language":"JavaScript","funding_links":[],"categories":["Ember CLI Addons"],"sub_categories":["UI Helpers"],"readme":"# Ember Tether [![Build Status](https://travis-ci.org/yapplabs/ember-tether.svg?branch=master)](https://travis-ci.org/yapplabs/ember-tether) [![Ember Observer Score](http://emberobserver.com/badges/ember-tether.svg)](http://emberobserver.com/addons/ember-tether)\n\nThis ember-cli addon provides a component that allows for 'tethering' a block to a target somewhere else on the page. The target may be an element, an element selector, or an Ember view. Importantly, the component retains typical context for Ember action handling and data binding.\n\n\n## Compatibility\n\n* Ember.js v3.28 or above\n* Ember CLI v3.28 or above\n* Node.js v14 or above\n\nFor Ember 1.13 - 2.3, use 0.4.1. For support for earlier versions of Ember, use ember-tether 0.3.1.\n\n## Installation\n\n## Live Demo\n\nView a live demo here: [http://yapplabs.github.io/ember-tether/](http://yapplabs.github.io/ember-tether/)\n\n## Installation\n\n`ember install ember-tether`\n\n*Note:* Ember CLI versions \u003c 0.2.3 should use `ember install:addon` instead of `ember install`\n\n## Example Usage\n\nGiven the following DOM:\n\n```html\n\u003cbody class=\"ember-application\"\u003e\n  \u003cdiv id=\"a-nice-person\"\u003e\n    Nice person\n  \u003c/div\u003e\n  \u003cdiv class=\"ember-view\"\u003e\n    \u003c!-- rest of your Ember app's DOM... --\u003e\n  \u003c/div\u003e\n\u003c/body\u003e\n```\n\nand a template like this:\n\n```hbs\n\u003cEmberTether\n  @target='#a-nice-person'\n  @targetAttachment='top right'\n  @attachment='top left'\n\u003e\n  A puppy\n\u003c/EmberTether\u003e\n```\n\nThen \"A puppy\" would be rendered alongside the `a-nice-person` div.\n\nIf the ember-tether component is destroyed, its far-off content is destroyed too.\nFor example, given:\n\n```hbs\n{{#if this.isShowing}}\n  \u003cEmberTether\n    @target='#a-nice-person'\n    @targetAttachment='top right'\n    @attachment='top left'\n  \u003e\n    A puppy\n  \u003c/EmberTether\u003e\n{{/if}}\n```\n\nIf `this.isShowing` starts off true and becomes false, then the \"A puppy\" text will be removed from the page.\n\nSimilarly, if you use `\u003cEmberTether /\u003e` in a route's template, it will\nrender its content next to the target element when the route is entered\nand remove it when the route is exited.\n\n## Acceptance Testing\n\nTether works by appending tethered elements to the `\u003cbody\u003e` tag. Unfortunately, this moves your content outside of the Ember application `rootElement` during acceptance testing. This breaks event dispatch and action handling, including traditional Ember test helpers like `click`.\n\nAs of version 0.4.0, we can configure a different element to be used instead of body. This can be useful for Ember tests.\n\n```js\n// config/environment.js\n\nENV['ember-tether'] = {\n  bodyElementId: 'ember-testing'\n};\n```\n\nIt is also possible to pass a `bodyElement` to a particular ember-tether component declaration.\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\n## License\n\n- [Ship Shape Tether](https://github.com/shipshapecode/tether), the underlying library that implement the actual tethering behavior\n- [ember-wormhole](https://github.com/yapplabs/ember-wormhole), whose pattern for element content manipulation inspired the approach in ember-tether\n- [Tetherball](http://en.wikipedia.org/wiki/Tetherball), for providing countless hours of entertainment over the past century\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyapplabs%2Fember-tether","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyapplabs%2Fember-tether","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyapplabs%2Fember-tether/lists"}