ionic-team / ionic-team/ionic-framework
feat: datetime, allow for locales not supported by the browser
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
### 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 report this problem, without success.
### Ionic Framework Version
- [ ] v4.x
- [ ] v5.x
- [X] v6.x
- [ ] Nightly
### Current Behavior
the previous version of ion-datetime has monthNames property. it was useful to set month names up for any app localisation even the app language no in localisation standarts. also we would like to set weekdays' names to any.
is there way to do that in ionic 6?
also there are many tiny uncomfy stuff, such as:
- imposible to set title for the component;
- ionChange does not change value property;
- does not show cancel and done buttuns even cancelText and doneText are set
### Expected Behavior
- must be title, monthNames and weekNames properties;
- ionChange must change value property;
- must show cancel and done buttons that. done button must emit iolDone event
### Steps to Reproduce
just like in https://ionicframework.com/docs/api/datetime
### Code Reproduction URL
_No response_
### Ionic Info
Ionic CLI : 6.20.1 (/home/diamo/.nvm/versions/node/v16.15.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.1.11
@angular-devkit/build-angular : 14.0.3
@angular-devkit/schematics : 14.0.3
@angular/cli : 14.0.3
@ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 3.6.0
@capacitor/android : 3.6.0
@capacitor/core : 3.6.0
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
### Additional Information
_No response_
贡献指南
调研方向
Start with the ion-datetime API documentation linked in the issue and review the current Ionic Angular component behavior. Define the scope for custom month and weekday names, a title, value updates, and cancel/done events, then verify each expected behavior against the documented reproduction scenario.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100