Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <input type="text" value="{{inputValue}}" onblur={{action "toggleInputFocused"}} onfocus={{action "toggleInputFocused"}}>
  2.  
  3. valueChanged: Ember.observer('inputValue', function () {
  4. // deal with the change
  5. this.set("valueSet",(this.get('inputValue').trim().length > 0));
  6. }),
  7.  
  8. {{input value=inputValue focus=(action "toggleInputFocused")}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement