Issue
I am using ionic 5 with ion-datetime component. My requirement is to picl 2 dates but for some reasons the component does not let me pick more than one date. below is the code i have:
<ion-row>
<ion-col class="ion-text-center">
<ion-datetime presentation="date" multiple="true" preferWheel="false" [(ngModel)]="packageEstimatedDated"></ion-datetime>
</ion-col>
</ion-row>
Solution
Multiple Date Selection only works on ionic v6 or later you can check the v5 document from here.
To achieve that I prefer you upgrade to v6 or you can use a third-party library like ion2-calendar
you can check this article
Answered By - Louay Sleman
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.