ngx-daterangepicker-material icon indicating copy to clipboard operation
ngx-daterangepicker-material copied to clipboard

can't open mulitple datepickers using DaterangepickerDirective

Open gokulb2298 opened this issue 3 years ago • 3 comments

Anybody give me a solution.it would be helpful. Thanks for advance

gokulb2298 avatar Mar 19 '21 08:03 gokulb2298

Is there a way to use multiple calendars in one single view/page using DaterangepickerDirective, when I tried same calendar is opening for all instances?

arunrajvvspn avatar Apr 28 '21 08:04 arunrajvvspn

Do you need to open all at once?

Because I am using multiple calenders in my single component. But different on differnet buttons. Well to me there was not any issue.

 <input (datesUpdated)="selectedChange($event)" [(ngModel)]="selected"
   [autoApply]="options.autoApply"
   [closeOnAutoApply]="options.closeOnAutoApply"
   [customRangeDirection]="options.customRangeDirection"
   [linkedCalendars]="options.linkedCalendars"
   [lockStartDate]="options.lockStartDate"
   [maxDate]="maxDate"
   [showCancel]="options.showCancel"
   [showClearButton]="options.showClearButton"
   [showISOWeekNumbers]="options.showISOWeekNumbers"
   [showWeekNumbers]="options.showWeekNumbers" applyLabel="Okay"
   autocomplete="off"
   emptyWeekRowClass="empty-week"
   firstDayOfNextMonthClass="first-next-day"
   firstMonthDayClass="first-day"
   id="daypicker"
   lastDayOfPreviousMonthClass="last-previous-day"
   lastMonthDayClass="last-day" matInput
   name="options"
   ngxDaterangepickerMd opens="left"
   singleDatePicker="true" type="radio">

ArslanAmeer avatar May 03 '21 19:05 ArslanAmeer

Dear ArslanAmeer,

Can you please provide working sample code. I am too facing same issue.

satishbandre62 avatar Oct 19 '21 18:10 satishbandre62