I am using the Ultima theme for PF and I want to include a p:schedule in one of my sites. I need the prev/nextYear functionality and hence two buttons with which I can switch through the years. This should be possible by specifying the two buttons in the header templates. I have the following code:
Code: Select all
<p:schedule widgetVar="myschedule"
timeZone="GMT+2"
value="#{scheduleBean.scheduleModel}"
timeFormat="H(:mm)"
allDaySlot="false"
rightHeaderTemplate="month,agendaWeek,agendaDay"
leftHeaderTemplate="prev,next,today"
enterHeaderTemplate="title,prevYear,nextYear"
extender="initSchedule"
style="max-width: 1600px">
<p:ajax event="dateSelect"
listener="#{scheduleBean.onDateSelect}"/>
</p:schedule>
Code: Select all
this.cfg.themeSystem = 'bootstrap';
Can you provide me with solution to this problem? Thank you very much.