在使用默认的PrimeFaces Schedule slotDuration或例如“ 00:15:00”时,组件不会始终显示。如果我将其更改为“ 00:45:00”甚至“ 00:15:01”之类的值,则时间表将正确显示所有时间。
检查HTML / CSS,在不显示时间的情况下,<td>
标签在时间中没有<span>
标签,并且具有CSS类“ 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。
谢谢。
答案 0 :(得分:0)
看来PF缺少slotLabelInterval的值,该值可以解决此问题。
我创建了此GitHub问题:https://github.com/primefaces/primefaces/issues/4896
提交了此PR:https://github.com/primefaces/primefaces/pull/4897
希望它将在PrimeFaces 7.1中修复。
现在您可以使用扩展器对其进行配置:https://primefaces.github.io/primefaces/7_0/#/components/schedule?id=extender-method