Primefaces calendar component show only month and year

后端 未结 12 1901
南笙
南笙 2020-12-14 03:25

primefaces calendar component is getting Date by default. Can I get only month and year without dates.

How to get only month and year

12条回答
  •  忘掉有多难
    2020-12-14 03:41

    You have to add this block to complete the navigation with arrow:

    $(".ui-datepicker-next").click( function(){changeMonthYear(calendar);});
    $(".ui-datepicker-prev").click( function(){changeMonthYear(calendar);});
    

提交回复
热议问题