Hi,
I'm using a custom popup edit template for my grid where I'm using a datetimepicker with data attributes.
I would like to use disableDates function to allow only a range between [PlannedFromTemp, PlannedToTemp], but until now I was not able to pass the "date" argument in the function as in the documentation here.
How can I pass the "date" in my test function as in the documentation, but in my concrete custom template?
<input id="Timefrom" name="Timefrom"
data-type="date"
data-role="datetimepicker"
data-bind="value: Timefrom"
data-format="dd.MM.yyyy HH:mm"
data-time-format="HH:mm"
data-disable-dates="#= test(date, PlannedFromTemp, PlannedToTemp) # "
/>
Thank you in advance,