Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Component.extend({
- onPrimaryClick: null,
- onSecondaryClick: null,
- actions: {
- triggerPrimaryClick() {
- if (this.onPrimaryClick) {
- this.onPrimaryClick();
- }
- },
- triggerSecondaryClick() {
- if (this.onSecondaryClick) {
- this.onSecondaryClick();
- }
- }
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement