React-calendar: DefaultDetail as a new prop

Created on 8 Apr 2019  路  2Comments  路  Source: wojtekmaj/react-calendar

Thanks for great calendar component 馃憤

I really like the props maxDetail and minDetail. Sometimes, I really miss something like defaultDetail, in some cases like date of birth it is much better for users (we have tested it on UX tests) to set default detail to year, because user firstly chooses year then month and after that day, which can be annoying when user has days as default detail.

There are some solutions available which allow that feature (e.g air-datepicker) but only in jQuery. Generally, there is lack of react datepickers with it and it can be a really useful enhancement.

I would like to create a PR for that, what do you think about it @wojtekmaj ?

question

Most helpful comment

Investigated; we already have this, but it's called view and not defaultView. Just checked; definitely works :) Try e.g. view="decade".

All 2 comments

I think it's an excellent idea! I'll transfer this issue to React-Calendar as it's React-Calendar which handles date picking on a calendar UI :)

Investigated; we already have this, but it's called view and not defaultView. Just checked; definitely works :) Try e.g. view="decade".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Chusynuk picture Chusynuk  路  3Comments

boonware picture boonware  路  4Comments

dumkanki picture dumkanki  路  3Comments

tranvula picture tranvula  路  4Comments

akabab picture akabab  路  4Comments