如何在"agendaWeek"中隐藏时隙FullCalendar/Primefaces< p:schedule>的视图? [英] How to hide time-slots in "agendaWeek" View of FullCalendar/Primefaces <p:schedule>?

查看:88
本文介绍了如何在"agendaWeek"中隐藏时隙FullCalendar/Primefaces< p:schedule>的视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在"agendaWeek"视图中隐藏时隙?我正在使用基于FullCalendar的Primefaces <p:schedule>.我只将AllDay-Events添加到此特定的计划中,所以我的客户决定隐藏该时隙.

Is it possible to hide the time-slots in "agendaWeek" View? I'm using Primefaces <p:schedule> which based on the FullCalendar. I only add AllDay-Events to this specfic schedule, so my client decided to hide the time-slots.

我希望有办法.

最诚挚的问候

推荐答案

不确定这是否是您的意思

not sure if that's what you mean

但是要隐藏计划表中的第一列,请尝试使用此CSS选择器(如果您在包含计划程序的表单中找到prependId = "false",请删除formID\3A)

but to hide the first column in schedule try this css selector (remove formID\3A if you got prependId = "false" in your form that contains the scheduler )

#formID\3A scheduleID th.fc-agenda-axis{
    display:none
}

或运行此js代码(在primefaces展示柜上经过测试)

or run this js code (tested on primefaces showcase)

jQuery("th.fc-agenda-axis").hide()


更新

这是隐藏时间段(OP真正在寻找什么)的方法

This is how to hide the time slots (what the OP was really looking for)

#formID\3A scheduleID table.fc-agenda-slots{
    display:none
}

这篇关于如何在"agendaWeek"中隐藏时隙FullCalendar/Primefaces&lt; p:schedule&gt;的视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆