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

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: .2,
        ''   : .5
    }
});

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



标签: ,

无觅相关文章插件,快速提升流量