Open ArslanAmeer opened 3 years ago
Hello @ArslanAmeer today i was facing the same problem and here's what i did to fix this problem P.S: it's not the best solution but it should do the trick
First you add your input like this with [singleDatePicker]="false"
<input type="text" matInput ngxDaterangepickerMd startKey="start" endKey="end" [(ngModel)]="selected" [singleDatePicker]="false" [autoApply]="true" [alwaysShowCalendars]="true" [ranges]="ranges" name="daterange" />
Then what you wanna do is hide the right calendar and make it only 1 calendar here's the code
:host ::ng-deep .md-drppicker.ltr .calendar.right { display: none; }
So this will hide the right calendar and make your left calendar rangable with ease
P.s: you might need to play with css little bit to fix the width and height of calendar but it won't be a huge problem
@ali-jalall Hmmm.. i will look into it and update it if it works for me.
Is there any possible way or configuration where we can select date range in a single calendar, I have tried with configuration, but I got a single calendar with a single date selector by only applying
singleDatePicker="true"
Options: