Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

input with datepicker #81

Closed
bzuidgeest opened this Issue · 1 comment

2 participants

@bzuidgeest

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...

@BorisMoore
Owner

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.