How can i trigger an action on input blur, this is what i have tried.
{{input class="form-control" action="validateEmail" onEvent="onBlur"}}
{{input class="form-control" action="validateEmail" onEvent="blur"}}
{{input class="form-control" action="validateEmail" onEvent="focusOut"}}
They all only trigger on enter
You can use the focus-out
{{input type="text" value=text focus-out="doAction"}}
Give a look in that fiddle http://jsfiddle.net/marciojunior/977xj/
To pass arguments to an action, you can use closure action syntax:
{{input focus-out=(action "doSomething" "someArgument")}}
(would've added this as a comment, but I don't have enough reputation yet)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With