primefaces / community

Community Forum
0 stars 0 forks source link

Feature Request: Issue with Calendar selectionMode range and numberOfMonths combined. #2259

Open chandrabhan-singh-27d opened 3 days ago

chandrabhan-singh-27d commented 3 days ago

Discussed in https://github.com/orgs/primefaces/discussions/2258

Originally posted by **chandrabhan-singh-27d** July 5, 2024 Hi, I am trying to combine selectionMode range with numberOfMonths = 2 so as to get two calendars alongside each other but there are a few things that need to be improved. 1. Providing numberOfMonths restrict on chaging the month or year directly ![image](https://github.com/primefaces/community/assets/92934758/32f1bfb9-e945-4fcd-96e3-021d88383e00) However, there is a quick fix to this but it is not visually appealing. We can activate dropdowns for year and month selection using monthNavigator and yearNavigator props. Below is the image supporting the statement. ![image](https://github.com/primefaces/community/assets/92934758/429433e8-a649-4a9f-b66a-37fde348e09b) 2. After selecting the range, it automatically throws to the latest select value calendar as opposed to showing both the calendars with selected dates. Below are the images for same. ![image](https://github.com/primefaces/community/assets/92934758/30045500-a173-4de9-8f16-6defb98ed483) ![image](https://github.com/primefaces/community/assets/92934758/01831a79-353f-4d8d-bd9f-84d83992a0fd) Please let me know if this is feasible, also if it is possible that I can contribute to implement it.