Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
facing issue to add min and max value dynamically for ig-date-picker in angular
posted

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?

Parents Reply Children