daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import PowerSelect from 'ember-power-select/components/power-select';
  2.  
  3. export default PowerSelect.extend({
  4.     init(){
  5.         this._super(...arguments);
  6.         // do custom stuff
  7.     },
  8.     onMouseEnter(_, event){
  9.         // I've taken this code from how `power-select` already handles events
  10.         let action = this.get('onMouseEnter');
  11.         if (action) {
  12.             action(this.get('publicAPI'), event);
  13.         }
  14.     }
  15. })
  16.    
  17. {{#dropdown.trigger
  18.     // You add this line
  19.     onMouseEnter=(action "onMouseEnter")
  20.     role=(readonly triggerRole)
  21.     tagName=(readonly _triggerTagName)
  22.     ...
  23.     tabindex=(readonly tabindex)}}
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