primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Add yearRange to calendar

Open MChouaiar opened this issue 10 years ago • 2 comments

I have a problem with p-calendar I want to define a year range to the year dropbox but I don't know how, does any body here knows how to do?

Thanks in advance. Mo

MChouaiar avatar Aug 08 '16 09:08 MChouaiar

With beta12, it is defined like;

http://api.jqueryui.com/datepicker/#option-yearRange

.e.g

yearRange="2002:2012"

cagataycivici avatar Aug 08 '16 13:08 cagataycivici

I've logged an issue related to yearRange: https://github.com/primefaces/primeng/issues/5476 The only way to make the user select a specific year in the popup is by setting yearRange. The problem is that when you manually enter a year outside of the range, it's not displayed in the popup (however ngModel is set correctly)

ghost avatar Apr 03 '18 12:04 ghost