React-calendar: Add option to disable prev2/next2 labels

Created on 20 Apr 2018  路  4Comments  路  Source: wojtekmaj/react-calendar

Hi! I'd like to be able to disable the prev2 and next2 buttons entirely. Passing prev2Label={ null } and next2Label={ null } render buttons without text, but don't actually remove the buttons.

(It's possible to hide these through CSS, but it'd be nice to disable via props as well to avoid even rendering the buttons in the first place.)

enhancement

Most helpful comment

Hi! I just noticed that the type definitions for prev2Label/next2Label don't allow for null. Would you like a PR?

All 4 comments

Hi there, that is a great idea. It has been implemented and will be live with the next release!

Hi! I just noticed that the type definitions for prev2Label/next2Label don't allow for null. Would you like a PR?

Absolutely! Please do. I'm still not knowledgeable enough in TS to be sure I'm not messing up.

Thanks for doing this !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dumkanki picture dumkanki  路  4Comments

Hubro picture Hubro  路  3Comments

mikeyharris89 picture mikeyharris89  路  4Comments

Coder2012 picture Coder2012  路  5Comments

ktse picture ktse  路  6Comments