Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Component.extend({
  4.  
  5. onPrimaryClick: null,
  6. onSecondaryClick: null,
  7.  
  8. actions: {
  9. triggerPrimaryClick() {
  10. if (this.onPrimaryClick) {
  11. this.onPrimaryClick();
  12. }
  13. },
  14. triggerSecondaryClick() {
  15. if (this.onSecondaryClick) {
  16. this.onSecondaryClick();
  17. }
  18. }
  19. },
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement