javascript - Knockout bind HTML datepicker min and max -


i have 2 html date pickers having trouble with. trying set value , apply minimum , maximum criteria knockout. after research found the proper date format proper format value, min, , maximum. trouble is, min , max not seem work.

here html date picker:

<input type="date" data-bind="value: mindate, min: mindaterange, max: maxdaterange" /> 

the format of dates yyyy-mm-dd in accordance link sent. if manually apply min , max attributes date format works fine. have idea doing wrong?

you can't use min , max because there no such bindinghandlers. can use attr bindinghandler:

<input type="date" data-bind="value: mindate, attr: { min: mindaterange, max: maxdaterange }" /> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -