ionic-team / ionic-team/ionic-framework
feat: datetime, allow for optional year selection
- Vorherrschende Sprache
- TypeScript
- Sterne
- 52.7k
- Forks
- 13.3k
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 51
Beschreibung
### 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
The new ion-datetime component should support selection of a date without a specific year. If I add a birthday or a date (like named where year selection makes no sense) on the native address book of iOS (and a few android flavours I tried) the picker has option for year "----". The selected date then shows as Day-Month only with no year element.


### Describe the Use Case
Select a date that is not defined by a year, such as a recurring date or range that does not have a defined start year or the year is not important.
### Describe Preferred Solution
An attribute that indicates the year selection is optional would be the ideal solution I believe. The Datetime component then would have an extra year option denoted as '----' which could set the year to an extreme (say 9999) to differentiate from an explicit year selection since a valid date has to be returned by the component in all modes.
### Describe Alternatives
_No response_
### Related Code
_No response_
### Additional Information
_No response_
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.