primefaces / primefaces/primereact

Calendar: Initial view

Open
#5,157 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Discussion Type: New Feature
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the feature you would like to see added

It would be nice if we could define the initial view of the calendar popup, for example, an initialView="year" option would show the year selector immediately after the popup opens and then allow the date selection to start from selecting the year (useful for selecting birthdate for example).

Describe alternatives you have considered

Tried the existing view prop but it doesn't allow the selection to continue, i.e. setting view="year" closes the popup after selecting the year.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the calendar popup component and tracing how its existing view prop controls the opening view and subsequent selection. Implement an initial view option that opens at the requested year view while preserving continued date selection, then verify the birthdate-style flow and existing view behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.