SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Component.extend({
  4.   sampleText: '',
  5.   outputs: Ember.A(),
  6.   attributeBindings: ['tabIndex'],
  7.   tabIndex: Ember.computed('canSetTabIndex', function() {
  8.     return this.get('canSetTabIndex') ? '0' : null;
  9.   }),
  10.   click() {
  11.     console.log('You clicked the component');
  12.     this.get('outputs').pushObject('You clicked the component');
  13.     this.get('outputs').pushObject('--------------------------');
  14.   },
  15.   focusIn() {
  16.     console.log('You focussed in the component');
  17.     this.get('outputs').pushObject('You focussed in the component');
  18.   }
  19. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top