Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement