Has anyone successfully used jQuery Mobile DateBox with Knockout.js?
I’m having trouble getting the binding to work when providing a value to display before selecting a date. It remains blank. If I use a standard text input, the binding works fine.
<input id="start" type="date" data-bind="value: start" data-role="datebox" data-options='{"mode": "timeflipbox", "useButton": false, "useFocus": true, "dialogForce" : true, "transition" : "slidedown"}'>
//In the view model:
this.start = ko.observable(startTime);
I’ve tried
$('#start').datebox('refresh')
but no luck….
I ended up writing a custom binding for knockout which seems to do the trick:
Usage: