Hi,
I am using ig-date-picker. i want to set min and max value dynamically. but its not taking it.
HTML:
<ig-date-picker #igwidget testClass="dtPicker-project-plannedStartDate" name="QProject/QProject/PlannedStartDate" [(ngModel)]="model.plannedStartDate" (valueChanged)="modifyProject('plannedStartDate', $event)" [options]="datePickerOptions"></ig-date-picker>
TS:
this.datePickerOptions ={ regional: this.language,
datepickerOptions: {
maxDate: new Date(this.maxDate) } }
but max date do not change dynamically.
Could you please help?
Hello,
I modified the sample to use German regional setting and the max and min dates are applied as expected.
Here's the stackblitz sample.
Can you modify that sample to demonstrate the issue you are facing?
stackblitz what you have created do not support regional (localization) for date-picker.
we face problem when we set max/min with regional.
It seems that stackblitz has some asynchronous loading of the scripts from the index file.
Here's a working one.
the stackbitz you have created not working.
it shows " jQuery is not defined" error.
I created a stackblitz to demonstrate it. Seems to be working as expected. Please review it and let me know if you need further assistance on this.