{"id":15016009,"url":"https://github.com/lukes/ember-cli-full-screen","last_synced_at":"2025-04-12T10:08:26.661Z","repository":{"id":57223271,"uuid":"48463419","full_name":"lukes/ember-cli-full-screen","owner":"lukes","description":"Ember CLI Addon that provides a pure-Ember Mixin to easily control the fullscreening of components","archived":false,"fork":false,"pushed_at":"2015-12-23T19:10:08.000Z","size":221,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T05:02:31.599Z","etag":null,"topics":["ember-cli","ember-cli-addon","ember-mixin","emberjs","fullscreen"],"latest_commit_sha":null,"homepage":"http://lukes.github.io/ember-cli-full-screen/","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/lukes.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}},"created_at":"2015-12-23T02:00:30.000Z","updated_at":"2020-09-09T03:34:21.000Z","dependencies_parsed_at":"2022-08-24T16:20:53.684Z","dependency_job_id":null,"html_url":"https://github.com/lukes/ember-cli-full-screen","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukes%2Fember-cli-full-screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukes%2Fember-cli-full-screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukes%2Fember-cli-full-screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukes%2Fember-cli-full-screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukes","download_url":"https://codeload.github.com/lukes/ember-cli-full-screen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456369,"owners_count":21106603,"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-cli","ember-cli-addon","ember-mixin","emberjs","fullscreen"],"created_at":"2024-09-24T19:48:16.801Z","updated_at":"2025-04-12T10:08:26.639Z","avatar_url":"https://github.com/lukes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-cli-full-screen\n\nAn [Ember CLI Addon](http://www.ember-cli.com/) that provides a\npure-Ember Mixin to easily control the fullscreening of components.\n\nYou can view a simple [demo here](http://lukes.github.io/ember-cli-full-screen/).\n\n## Installation\n\nRun the install command on your ember-cli project:\n\n`ember install ember-cli-full-screen`\n\n## Usage\n\nAdd the mixin to your components:\n\n```javascript\n// app/components/my-component.js\nimport Ember from 'ember';\nimport FullScreenMixin from 'ember-cli-full-screen/mixins/full-screen';\n\nexport default Ember.Component.extend(FullScreenMixin, {\n    // Your component code...\n});\n```\n\nYour components will then have the following actions:\n\n* `toggleFullscreen`\n* `enterFullscreen`\n* `exitFullscreen`\n\nAnd the boolean property `fullscreen` to check if the component is\nfullscreened.\n\nFullscreen can additionally be exited by hitting `Esc`.\n\n## Examples\n\nToggling fullscreen from the component's template:\n\n```handlebars\n\u003cspan {{action 'toggleFullscreen'}}\u003eToggle fullscreen\u003c/span\u003e\n```\n\nUsing the `fullscreen` property to check for fullscreen state:\n\n```handlebars\n{{#if fullscreen}}\n  We're in fullscreen!\n  \u003cspan {{action 'exitFullscreen'}}\u003eExit fullscreen\u003c/span\u003e\n{{else}}\n  \u003cspan {{action 'enterFullscreen'}}\u003eFullscreen\u003c/span\u003e\n{{/if}}\n```\n\nYou can of course use `send()` from within the component itself:\n\n```javascript\nexport default Ember.Component.extend({\n  actions: {\n    conditionallyToggleFullscreen() {\n      if (this.get('someCheck')) {\n        this.send('toggleFullscreen');\n      }\n    }\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukes%2Fember-cli-full-screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukes%2Fember-cli-full-screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukes%2Fember-cli-full-screen/lists"}