【问题标题】:p:schedule size is too smallp:计划大小太小
【发布时间】: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


【解决方案1】:

将您的 slotMinutes 属性值 90 更改为任何其他值,例如 30,然后自动增加大小。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-10-16
    • 2020-03-21
    • 2012-06-19
    • 2021-08-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多