【问题标题】:I want to add different different color for option show more link in react-big-calendar我想为选项添加不同的颜色以在 react-big-calendar 中显示更多链接
【发布时间】:2021-07-14 06:09:33
【问题描述】:

我想为在 react-big-calendar 中显示更多链接的选项添加不同的颜色

【问题讨论】:

    标签: reactjs calendar react-big-calendar


    【解决方案1】:

    您可以将消息属性用于日历组件。

    <Calendar
    ...other props
    messages={{
             ...other messages
             showMore: (total) => (<span style={{color: 'red'}}>+{total} more</span>)
    }}
    />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-22
      相关资源
      最近更新 更多