hsuanxyz / ion2-calendar

📅 A date picker components for ionic2 /ionic3 / ionic4
https://hsuanxyz.github.io/demo/ion2-calendar/
MIT License
555 stars 278 forks source link

Month format in Modal Mode #222

Open AlexandreChollet opened 5 years ago

AlexandreChollet commented 5 years ago

Ionic version: (check one with "x") [ ] 2.x [ ] 3.x [x] 4.x

Ion2-calendar mode: (check one with "x") [ ] components mode [x] modal mode

I'm submitting a ... (check one with "x") [ ] bug report [x] feature request [ ] help me

Current behavior: You can not set any month format in the modal mode, but you can actually achieve this in the components mode (using the "monthPickerFormat" option). Very unconvenient when you have to deal with localization.

Expected behavior: Being able to set a custom array of month labels for the modal mode.

Suggested code:

const options: CalendarModalOptions = {
    'months': ["January", "February", ...]
};

Ionic info:

Ionic:

ionic (Ionic CLI) : 4.3.1 Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.2.1

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 7.1.1, browser 5.0.4, ios 4.5.5 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 16 other plugins)

System:

NodeJS : v8.11.1 (C:\Program Files\nodejs\node.exe) npm : 6.4.1 OS : Windows 7

seb3575 commented 5 years ago

Hi, Have you found the solution ?