Created
March 16, 2015 22:23
-
-
Save benlesh/628735846edeca8c8829 to your computer and use it in GitHub Desktop.
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
export default Ember.Component.extend({ | |
title: 'No Title', | |
/* code | |
actions: { | |
brush: function(e){ | |
this.sendAction('brushAction', e); | |
} | |
} | |
}); |
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
export default Ember.Component.extend({ | |
dataSourceName: null | |
/* CPs to create data1, data2, data3 from dataSourceName here */ | |
brushAction: null, | |
actions: { | |
brush: function(e) { | |
this.sendAction('brushAction', e) | |
} | |
} | |
}); |
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
export default Ember.Component.extend({ | |
title: 'Other Data', | |
/* unique and interesting functionality here */ | |
actions: { | |
whatever: function(e) { | |
console.log('whatever button clicked'); | |
}, | |
brush: function(e) { | |
this.sendAction('brushAction', e); | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment