-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Open
Labels
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Can we have day picker when selecting month and year ?
Describe the Use Case
A day picker when selecting month and date would be a better UX.
Describe Preferred Solution
currently this i my setup:
html:
@if(!isDateTIme){
<ion-datetime presentation="date" [preferWheel]="false" [max]="minDateOfBirth" mode="ios"
[value]="dateOfBirth" (ionFocus)="onDateFocus($event)" mode="ios">
</ion-datetime>
}
@else{
<ion-datetime presentation="date" [preferWheel]="true" [max]="minDateOfBirth" [showDefaultButtons]="true"
mode="ios" [value]="dateOfBirth" (ionChange)="submitDob($event)" mode="ios">
</ion-datetime>
}
.ts:
submitDob(e: any) {
this.isDateTIme = false;
}
onDateFocus(e: any) {
this.isDateTIme = true;
}
Describe Alternatives
none
Related Code
@if(!isDateTIme){
<ion-datetime presentation="date" [preferWheel]="false" [max]="minDateOfBirth" mode="ios"
[value]="dateOfBirth" (ionFocus)="onDateFocus($event)" mode="ios">
</ion-datetime>
}
@else{
<ion-datetime presentation="date" [preferWheel]="true" [max]="minDateOfBirth" [showDefaultButtons]="true"
mode="ios" [value]="dateOfBirth" (ionChange)="submitDob($event)" mode="ios">
</ion-datetime>
}
submitDob(e: any) {
this.isDateTIme = false;
}
onDateFocus(e: any) {
this.isDateTIme = true;
}
Additional Information
No response
