Last active
October 17, 2016 23:01
-
-
Save tavlima/7857e7fddccbd0bc75bb6b616f4981ba to your computer and use it in GitHub Desktop.
Events Playground
This file contains hidden or 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({ | |
value: 0, | |
logger: "Default initial value", | |
_willRender: function() { | |
this.set('logger', this.get('logger') + '\nEVENT: willRender'); | |
}.on('willRender') | |
}); |
This file contains hidden or 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.Route.extend({ | |
setupController: function(controller, model) { | |
this._super(controller, model); | |
this.controller.set('innerValue', 10); | |
this.controller.set('appName', 'Ember Twiddle'); | |
} | |
}); | |
// BINDAR startDate em algum atributo | |
// buscar pelo selector dos componentes pais (bar/milestone) | |
// para cada pai: (1 = title; 2 = date) | |
// start = min(start_filho1, start_filho2) | |
// end = max(end_filho1, end_filho2) | |
// varrer componentes na ordem do startDate | |
// ocultar se colidir |
This file contains hidden or 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 { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} | |
div { | |
padding: 0.5em; | |
} | |
.log-text-area { | |
width: 100%; | |
min-height: 300px; | |
} |
This file contains hidden or 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.10.5", | |
"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.8.0", | |
"ember-data": "2.8.0", | |
"ember-template-compiler": "2.8.0", | |
"ember-testing": "2.8.0" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment