根据PrimeFaces 13 documentation ,p: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/