FullCalendar在星期时间表视图中隐藏时间 [英] FullCalendar hide time in week timeline view

查看:172
本文介绍了FullCalendar在星期时间表视图中隐藏时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在时间轴视图中隐藏时间.在月份时间轴中,您只会看到日期,而看不到时间,但是在星期时间线中,也会显示时间.

Is there a way to hide the time in a timeline view. In the month timeline you only see the days and no time, but in week timeline the time is also displayed.

我希望在一周的时间轴上都一样.之所以需要它,是因为我的所有活动都是全天活动,因此无需显示时间轴.

I want it to be the same in week timeline. I need this because all my events are all-day events, so no need to display the time axis.

所需结果:

资源|1月12日|2周二/12 |周三3/12 |周四4/12 |周五5/12 |6/12周六|周日7/12

推荐答案

我已经通过在自定义视图中使用工期和slotduration解决了它:

I have solved it by using duration and slotduration in a custom view:

defaultView: 'customWeek',
views: {
    customWeek: {
        type: 'timeline',
        duration: { weeks: 1 },
        slotDuration: {days: 1},
        buttonText: 'Custom Week'
    }
},

另请参见 http://jsbin.com/mogefixege/edit?js,output以获取代码

这篇关于FullCalendar在星期时间表视图中隐藏时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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