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

feat: add ability to set global defaults #232

Closed dflor003 closed 5 years ago

dflor003 commented 5 years ago

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Demos changes
[ ] Other... Please describe:

What is the current behavior?

Currently, configuration defaults for the calendar are hardcoded.

Issue Number: #

What is the new behavior?

Adds the ability to specify configuration defaults via:

CalendarModule.forRoot({
  // Options
})

Does this PR introduce a breaking change?

[ ] Yes
[X] No

Other information