Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 react-big-calendar 用于日历目的。 现在我想禁用特定的一天,即如果星期一是假期或其他什么,用户不能选择那天的任何事件。 为此我想禁用一整天,因为这个原因,用户不能选择任何时间段。 提前致谢
我要做的第一件事是利用您dayPropGetter的应用程序某种类或样式,如果该日期不可用,则向用户显示。接下来我要做的是利用您onSelectSlot检查选择的开始/结束日期,如果它超出您的接受范围,则从方法中返回“false”。
dayPropGetter
onSelectSlot