Created
August 4, 2017 06:00
-
-
Save mariechatfield/5bc05d4d34bcc3db3884b1a16da7d38b to your computer and use it in GitHub Desktop.
click-handles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
log(name) { | |
this.sendAction('log', name); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
logs: [], | |
actions: { | |
helloFrom(name) { | |
this.get('logs').pushObject(name); | |
}, | |
stopPropagation(event) { | |
this.get('logs').pushObject(event); | |
return false; | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
--padding-small: 8px; | |
--padding-medium: 16px; | |
--color-light: #D4C2FC; | |
--color-medium: #998FC7; | |
--color-dark: #28262C; | |
margin: var(--padding-medium); | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
color: var(--color-dark); | |
} | |
.wrapper { | |
display: flex; | |
} | |
.example-column { | |
flex: 1 0 auto; | |
} | |
.log-column { | |
flex: 0 1 25%; | |
padding: 0 var(--padding-medium); | |
} | |
.parent { | |
padding: var(--padding-medium); | |
margin: var(--padding-small); | |
background-color: var(--color-medium); | |
border: 1px solid var(--color-dark); | |
max-width: 350px; | |
} | |
.child { | |
padding: 12px; | |
margin: 10px 0; | |
background-color: var(--color-light); | |
border: 1px solid var(--color-dark); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0" | |
}, | |
"addons": { | |
"ember-data": "2.12.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment