jsf - p :schedule not rendering when its slotLabelFormat attribute is specified

标签 jsf primefaces fullcalendar

根据PrimeFaces 13 documentationp:schedule 组件的 slotLabelFormat 属性是一个字符串,用于确定要在时间段内显示的文本,据我了解,必须根据引用momentjs documentation 。我已经尝试过其中几种格式。无论指定的格式如何,p:schedule 组件都不会呈现。 偶数 PrimeFaces showcase example当指定 slotLabelFormat 时,无法呈现 p:schedule。有没有人找到此问题的解决方案或解决方法?

最佳答案

如果您使用正确的格式,例如..,它就会起作用

slotLabelFormat="['HH:mm']"

因此,在 PrimeFaces 展示中,在该框中输入 ['HH:mm'],您将看到它的工作原理。

我的现在显示的是 05:00,而不是 5pm

关于jsf - p :schedule not rendering when its slotLabelFormat attribute is specified,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/77760487/

相关文章:

jsf - Facelets 多级模板 - ui :define not rendered

JSF 2.0 + Primefaces 2.x : Tooltip for datatable row

java - JSF 和 Richfaces 丰富 :select and f:selectItems

java - p :commandLink action does not fire

java - Primefaces 对话框架

java - h :inputText - jsf does not render the placeholder

javascript - FullCalendar,如何更改 eventClick 函数上的事件类

javascript - Fullcalendar v2 dayRender 用于议程 View 和 agendaWeek

javascript - 在全日历中单击时更改事件的背景颜色

jsf - 更新后 Primefaces 5 overlayPanel 损坏