Primefaces 时间表:如何选择日期范围?
我正在使用 primefaces 计划组件。我想选择一个天数范围来创建一个 n 天的事件,只需在开始日期按下鼠标按钮并在结束日期释放鼠标即可。完整日历允许:
http://arshaw.com/js/fullcalendar- 1.5.2/demos/selectable.html
如何对 primefaces 组件执行相同操作?我猜它是基于 jquery fullCalendar,但在我看来,你只能单击一个日期。
I'm using primefaces schedule component. I would like to select a range of days to create a n-days event just pressing the mouse button on the starting date and releasing it on the end date. Full calandar allows that:
http://arshaw.com/js/fullcalendar-1.5.2/demos/selectable.html
How can I do the same with the primefaces component? I guessed it was based on jquery fullCalendar, but it seems to me you can click only on a single date.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你是对的,Primefaces 不支持通过简单地拖动鼠标来创建 n 天的事件,但你仍然可以实现 fullCalendar 小部件而不是 Primefaces 时间表。
您所要做的就是使用 Primefaces 提供的 jquery:
否则
您可能会产生冲突。
You're right, Primefaces doesn't support the creation of a n-days event by simply dragging the mouse, but you still could implement the fullCalendar widget instead of Primefaces schedule.
All you have to do is to use the jquery provided by Primefaces:
or
Otherwise you could create conflicts.