input with datepicker #81

Closed
bzuidgeest opened this Issue Jun 13, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I have an application that uses an plugin to add a datepicker to inputs. The datepicker sets the value of the input as follows:

this.element.prop('value', formated);.

This however does not trigger data-linking. Manual input in the input box does trigger the data-linking. I adjusted the datepicker script (bootstrap-datepicker) to also do this after changing the input:

$.view(this.element).data[this.element.attr("name")] = "/Date(" + utcTime + ")/";

This creates the necessity for the inputs to have a name equal to the property they are linked to, but that is no problem. The real question here is. was this the best way to solve this. Maybe I could have just triggered some event? Or something else...

Owner

BorisMoore commented Oct 8, 2013

@bzuidgeest: There are samples now with datepicker, (links from this page: http://www.jsviews.com/#download/tag-controls) which should answer your questions. Closing this issue. Please re-open if you still have issues. Thanks...

@BorisMoore BorisMoore closed this Oct 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment