Skip to content

✨ Add a support for visibleYearsRange in the renderCustomHeader of the YearPicker#55

Merged
balajis-qb merged 1 commit into
mainfrom
issue-5644/enhancement/renderCustomHeader
Jul 7, 2025
Merged

✨ Add a support for visibleYearsRange in the renderCustomHeader of the YearPicker#55
balajis-qb merged 1 commit into
mainfrom
issue-5644/enhancement/renderCustomHeader

Conversation

@balajis-qb

@balajis-qb balajis-qb commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator

Description

Linked issue: Hacker0x01#5644

As mentioned in the ticket, I added a support for visibleYearsRange in the renderCustomHeader of the YearPicker. This prop will be only available when the showYearPicker prop is set and it provides the startYear and the endYear.

Changes

  • Updated ReactDatePickerCustomHeaderProps with the optional visibleYearsRange prop
  • Include visibleYearsRange when calling renderCustomHeader for the YearPicker View
  • Testcases to validate the change

image

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

@balajis-qb
balajis-qb force-pushed the issue-5644/enhancement/renderCustomHeader branch from 7e02ff7 to b104d69 Compare June 10, 2025 08:56
@balajis-qb
balajis-qb merged commit c48a086 into main Jul 7, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant