📜  反应大日历事件颜色 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:11.508000             🧑  作者: Mango

代码示例1
eventStyleGetter: function(event, start, end, isSelected) {
    console.log(event);
    var backgroundColor = '#' + event.hexColor;
    var style = {
        backgroundColor: backgroundColor,
        borderRadius: '0px',
        opacity: 0.8,
        color: 'black',
        border: '0px',
        display: 'block'
    };
    return {
        style: style
    };
},

render: function () {

    return (
        
            
); }