【发布时间】:2015-04-24 11:51:07
【问题描述】:
我正在使用<p:schedule>。
这是我的代码:
<h:panelGrid style="width: 100%; height: 100%" columnClasses="value">
<p:schedule resizable="false"
initialDate="#{visitBean.startingTime}"
aspectRatio="0.01"
minTime="10am"
maxTime="5pm"
firstHour="9"
id="schedule"
view="agendaDay"
slotMinutes="90"
allDaySlot="false"
value="#{visitBean.eventModel}"
widgetVar="myschedule"
timeZone="GMT+5">
<p:ajax event="dateSelect"
listener="#{visitBean.onDateSelect}"
update="schedule,:Form:vis_tm"/>
<p:ajax event="eventSelect"
listener="#{visitBean.onEventSelect}"
update="schedule"/>
<p:ajax event="eventMove"
listener="#{visitBean.onEventMove}"
update="messages,:Form:vis_tm"/>
<!--oncomplete="eventDialog.show()" -->
<!--update="eventDetails" -->
</p:schedule>
我不知道怎么了。我尝试将aspectRatio 设置得尽可能小,但我的日程安排仍然很小。如何增加我的日程安排?
【问题讨论】:
-
您的
p:schedule必须看起来像 PF 展示柜中的原始 primefaces.org/showcase/ui/data/schedule.xhtml看看发生了什么。 -
它的尺寸太小了,可能是因为我的 slotMinutes 和 minTime 和 maxTime,但我需要知道如何在不改变分钟的情况下增加我的插槽高度。
标签: html jsf primefaces schedule aspect-ratio