knockout.punches
knockout.punches copied to clipboard
Is it possible to use punches and textInput?
I love punches for the ability to write
<input value="{{myField}}" />
which creates a binding like:
<input data-bind="value:myField" >
But in some cases I also want more immediate updates using textInput:
<input data-bind="textInput: myField" />
Is there any way to accomplish this in punches?
Have you tried <input textinput="{{myField}}" />?
D'oh, that works. I think I thought it wouldn't because value is an attribute of the input element in native HTML but textinput isn't. My bad. Thanks.
No problem. I could make it more clear in the documentation.