视图之View Option Hash – FullCalendar中文文档

2014-02-06 · 167 chars · 1 min read

FullCalendar 中文文档目录

用键值对的方式,指定多个视图的值。目前只对dragOpacitytitleFormatcolumnFormat, 和  timeFormat  有效。

{
    month:      // month view
    week:       // basicWeek & agendaWeek views
    day:        // basicDay & agendaDay views

    agenda:     // agendaDay & agendaWeek views
    agendaDay:  // agendaDay view
    agendaWeek: // agendaWeek view

    basic:      // basicWeek & basicDay views
    basicWeek:  // basicWeek view
    basicDay:   // basicDay view

    '':         // (an empty string) 当其他都不匹配的时候
}

举个例子,如果你想设置月视图的 dragOpacity 为 0.2,其他视图全部 0.5,可以这样初始化:

$('#calendar').fullCalendar({
  dragOpacity: {
    month: 0.2,
    '': 0.5,
  },
})

官方英文文档:http://arshaw.com/fullcalendar/docs/views/View_Option_Hash/

赞赏

微信