{"id":15541377,"url":"https://github.com/alexander-alvarez/ember-toggle-it","last_synced_at":"2026-04-24T12:33:23.917Z","repository":{"id":100072923,"uuid":"87397626","full_name":"alexander-alvarez/ember-toggle-it","owner":"alexander-alvarez","description":"Simplifying toggling carets and other icons","archived":false,"fork":false,"pushed_at":"2017-04-06T07:15:06.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-03T12:21:14.462Z","etag":null,"topics":["css-transforms","ember","ember-addon","toggle"],"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/alexander-alvarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2017-04-06T07:07:31.000Z","updated_at":"2017-04-06T07:09:38.000Z","dependencies_parsed_at":"2023-05-12T03:00:28.146Z","dependency_job_id":null,"html_url":"https://github.com/alexander-alvarez/ember-toggle-it","commit_stats":{"total_commits":4,"total_committers":3,"mean_commits":"1.3333333333333333","dds":0.5,"last_synced_commit":"6bfcfcd6ffff368bb07f8360479e92d185eaeddb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-alvarez%2Fember-toggle-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-alvarez%2Fember-toggle-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-alvarez%2Fember-toggle-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexander-alvarez%2Fember-toggle-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexander-alvarez","download_url":"https://codeload.github.com/alexander-alvarez/ember-toggle-it/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246117861,"owners_count":20726087,"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":["css-transforms","ember","ember-addon","toggle"],"created_at":"2024-10-02T12:16:52.310Z","updated_at":"2026-04-24T12:33:18.895Z","avatar_url":"https://github.com/alexander-alvarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-toggle-it\n\nSick of having CSS classes sprinkled everywhere just to rotate an icon?\nWish it could be more declarative to implement?\n`ember-toggle-it` will help you easily toggle it.\n\nDoesn't interfere with your DOM. Currently works with centered elements.\n\n## Installation\n\n`ember install ember-toggle-it`\n\n## Usage\n\n**Supports Several Toggle Modes**\n\nUp-Down\n```hbs\n{{#toggle-it toggleMode='^-v' value=value as |t| }}\n   \u003ca onclick={{action t.toggle}}\u003eIcon \u003c/a\u003e\n{{/toggle-it}}\n```\n\nLeft-Right (will be inverted in rtl mode)\n```hbs\n{{#toggle-it toggleMode='\u003c-\u003e' value=value as |t| }}\n   \u003ca onclick={{action t.toggle}}\u003eIcon \u003c/a\u003e\n{{/toggle-it}}\n```\n\nLeft-Down (will be right-down in rtl-mode)\n```hbs\n{{#toggle-it toggleMode='\u003c-v' value=value as |t| }}\n   \u003ca onclick={{action t.toggle}}\u003eIcon \u003c/a\u003e\n{{/toggle-it}}\n```\n\n**Supports DDAU**\n\n```hbs\n{{#toggle-it value=value update=(action (mut value)) as |t|}}\n   \u003ca onclick={{action t.toggle}}\u003eIcon \u003c/a\u003e\n{{/toggle-it}}\n```\n\n**Supports RTL**\n\n```hbs\n{{#toggle-it rtl=true value=value as |t| }}\n   \u003ca onclick={{action t.toggle}}\u003eIcon \u003c/a\u003e\n{{/toggle-it}}\n```\n\n## Contributing \n\n* `git clone alexander-alvarez/ember-toggle-it` this repository\n* `cd ember-toggle-it`\n* `npm install`\n* `bower install`\n\n## Running\n\n* `ember serve`\n* Visit your app at [http://localhost:4200](http://localhost:4200).\n\n## Running Tests\n\n* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexander-alvarez%2Fember-toggle-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexander-alvarez%2Fember-toggle-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexander-alvarez%2Fember-toggle-it/lists"}