ionic-team / ionic-team/ionic-framework

feat: datetime wheel picker type to enter month, day, and year

Ouverte
#25,723 0 commentaires 5 réactions 0 personnes assignées Voir sur GitHub
package: core type: feature request
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
51

Description

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already include this feature request, without success.

### Describe the Feature Request

If you tap on on the month, day or year of a [preferWheel] ion-datepicker component you should be able to bring up the keyboard and type in text. This allows quick, validated entry of a year (for example). For power users, this is a very important feature to be able to input dates fast.

Android spinner date picker. If you tap on the text/numbers, you can type in the value.
![image](https://user-images.githubusercontent.com/7528322/183076768-36cd01ee-5ace-4716-a814-918ddf9eb4ea.png)

### Describe the Use Case

- For casual users, the spinner date picker is easy to use
- For more serious business apps, lots of dates need inputted.
- The preferWheel picker should allow the user the option of tapping on part of a date, and typing it in using the keyboard

### Describe Preferred Solution

Emulate Android spinner picker functionality.

### Describe Alternatives

- I've considered making a custom date picker component but I think I would lose out on the advantages that the main ion-datepicker component brings.
- I've considered using a native date picker plugin but I think a cross-platform solution is ideal since this is an enhancement that would make the ion-datepicker strictly better.

### Related Code

_No response_

### Additional Information

_No response_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by locating the ion-datepicker implementation and the preferWheel rendering and interaction entry points. Compare the requested behavior with the Android spinner example, then define validated keyboard entry for month, day, and year and verify it across the supported picker modes and platforms.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
typescript
Domaine
frontend, mobile-dev
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.