react-calendar icon indicating copy to clipboard operation
react-calendar copied to clipboard

Feature Request - Add prop to customize current view title text

Open wdfinch opened this issue 2 years ago • 3 comments

Before you start - checklist

  • [X] I have checked if this feature request is not already reported

Description

I would like to be able to customize the title text. By title text, I'm referring to the text that appears in the top center of the component. In this case "December 2021."

Screenshot from 2021-12-09 12-01-09

Proposed solution

I think the best way to do this would be to pass in a function as a prop that returns a string. The function would receive context data as args. So for example, things like the selected month, year, etc. so we could use to create our string.

Alternatives

Haven't found any yet.

Additional information

No response

wdfinch avatar Dec 09 '21 20:12 wdfinch

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] avatar Mar 14 '22 00:03 github-actions[bot]

whats the update on these

ghost avatar Mar 22 '22 01:03 ghost

+1

Cebri63 avatar May 23 '22 14:05 Cebri63

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] avatar Aug 22 '22 01:08 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Sep 05 '22 02:09 github-actions[bot]

There's navigationLabel prop you can use.

Example: https://codesandbox.io/s/react-calendar-navigation-label-46eu1o

wojtekmaj avatar Sep 08 '22 08:09 wojtekmaj