PrimeFaces Schedule 不会始终显示某些 SlotDuration 配置
PrimeFaces Schedule not showing all times with some SlotDuration configuration
当使用 PrimeFaces Schedule 的默认 slotDuration 时,例如“00:15:00”,该组件不会一直显示。如果我将它更改为某些值,如“00:45:00”甚至“00:15:01”,时间表将正确显示所有时间。
检查HTML/CSS,在不显示时间的情况下,<td>
标签没有<span>
标签里面有时间,有CSS class "fc-minor"
我在文档中找不到有关此问题的信息。我已经使用已弃用的 slotMinutes 进行了测试,但它具有相同的行为。
时间之间有空格的时间表:
日程代码:
<p:schedule id="agendaOcupacional" allDaySlot="false" timeFormat="HH:mm" axisFormat="HH:mm"
draggable="false" resizable="false" slotDuration="00:15:00" timeZone="GMT-3"
displayEventEnd="true" value="#{agendamentoBean.lazyEventModel}" locale="br"/>
我正在使用 Primefaces 6.1。
谢谢。
看来 PF 缺少解决此问题的 slotLabelInterval 值。
我创建了这个 GitHub 问题:https://github.com/primefaces/primefaces/issues/4896
提交此 PR:https://github.com/primefaces/primefaces/pull/4897
希望它会在 PrimeFaces 7.1 中得到修复。
现在您可以使用 Extender 对其进行配置:https://primefaces.github.io/primefaces/7_0/#/components/schedule?id=extender-method
当使用 PrimeFaces Schedule 的默认 slotDuration 时,例如“00:15:00”,该组件不会一直显示。如果我将它更改为某些值,如“00:45:00”甚至“00:15:01”,时间表将正确显示所有时间。
检查HTML/CSS,在不显示时间的情况下,<td>
标签没有<span>
标签里面有时间,有CSS class "fc-minor"
我在文档中找不到有关此问题的信息。我已经使用已弃用的 slotMinutes 进行了测试,但它具有相同的行为。
时间之间有空格的时间表:
日程代码:
<p:schedule id="agendaOcupacional" allDaySlot="false" timeFormat="HH:mm" axisFormat="HH:mm"
draggable="false" resizable="false" slotDuration="00:15:00" timeZone="GMT-3"
displayEventEnd="true" value="#{agendamentoBean.lazyEventModel}" locale="br"/>
我正在使用 Primefaces 6.1。
谢谢。
看来 PF 缺少解决此问题的 slotLabelInterval 值。
我创建了这个 GitHub 问题:https://github.com/primefaces/primefaces/issues/4896
提交此 PR:https://github.com/primefaces/primefaces/pull/4897
希望它会在 PrimeFaces 7.1 中得到修复。
现在您可以使用 Extender 对其进行配置:https://primefaces.github.io/primefaces/7_0/#/components/schedule?id=extender-method