文本自定义之buttonText

优质
小牛编辑
129浏览
2023-12-01

设置日程表的头部按钮文字,值为Object类型,默认:

{
    prev:     '&lsaquo;', // <
    next:     '&rsaquo;', // >
    prevYear: '&laquo;',  // <<
    nextYear: '&raquo;',  // >>
    today:    'today',
    month:    'month',
    week:     'week',
    day:      'day'
}

如果你想修改 前进/后退 按钮的文字为 < 和 > 字符,可以使用下面的代码:

$('#calendar').fullCalendar({
    buttonText: {
        prev: '&lt;',
        next: '&gt;'
    }
});

官方英文文档:http://arshaw.com/fullcalendar/docs/text/buttonText/