Skip to content

Instantly share code, notes, and snippets.

@mupkoo
Last active September 30, 2015 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mupkoo/a73453999a14f458e8b3 to your computer and use it in GitHub Desktop.
Save mupkoo/a73453999a14f458e8b3 to your computer and use it in GitHub Desktop.
Ember Checkbox focus-in event
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Checkbox focus test',
actions: {
focusInAction() {
alert('Focused');
}
}
});
<h1>Welcome to {{appName}}</h1>
<label>
{{ input type="checkbox" focus-in="focusInAction" }}
Simple checkbox
</label>
{
"version": "0.4.11",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.9/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/1.13.11/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.9/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment