React-Mui-Scheduler

Configuration


Options

NameTypeDefaultDescriptionValues
transitionModeTransitionModeTransitionMode.ZOOMThis option is used to define the type of scheduler transition
TransitionMode.ZOOM
TransitionMode.FADE
TransitionMode.SLIDE
startWeekOnStartWeekStartWeek.MONThis option is used to set the start of the calendar week to Monday or Sunday
StartWeek.MON
StartWeek.SUN
defaultModeModeMode.WEEKThis option allows you to define the type of view to display
Mode.MONTH
Mode.WEEK
Mode.DAY
Mode.TIMELINE
minWidthnumber540This option allows you to define the minimum width of the container
maxWidthnumber540This option allows you to define the maximum width of the container
minHeightnumber540This option allows you to define the minimum height of the container
maxHeightnumber540This option allows you to define the maximum height of the container
reverseTimelineOrderbooleanfalseThis option allows you to define the order of events displayed in Timeline view
false
true

Props

NameTypeDefaultDescriptionValues
localestringenUSThis prop is used to set the locale of the scheduler
ar
br
de
enUS
es
fr
ja
ko
zh
eventsEvent[]This prop sets event data
legacyStylebooleanfalseThis prop allows to use the old display style
false
true
optionsOptionThis prop is used to set scheduler properties
alertPropsAlertPropsThis prop is used to set scheduler properties
toolbarPropsToolbarPropsThis prop is used to set toolbar properties
onEventsChangeeventThis event is fired when the event change occurs
onCellClickeventThis event is fired when a cell is clicked
onTaskClickeventThis event is fired when a task is clicked
onAlertCloseButtonClickedeventThis event is fired when the close button of the alert component
onDateChangeeventThis event is fired when a date from the DatePicker is clicked

Alert props

NameTypeDefaultDescriptionValues
openbooleantrueThis option opens the notification Alert component
false
true
colorAlertColorinfoAlert notification color
info
success
warning
error
severityAlertColorinfoAlert notification severity
info
success
warning
error
messagestring🚀 Let's start with awesome react-mui-scheduler 🔥 🔥 🔥Alert notification message to display
showActionButtonbooleantrueThis option displays or not the action button on the Alert
false
true
showNotificationbooleantrueThis option allows to display or not a notification when data change
false
true
delaynumber1500This option allows you to define the display delay in milliseconds of the Alert

Toolbar props

NameTypeDefaultDescriptionValues
showSearchBarbooleantrueShow or hide the search bar
false
true
showSwitchModeButtons.showMonthButtonbooleantrueShow or hide the view mode button month
false
true
showSwitchModeButtons.showWeekButtonbooleantrueShow or hide the view mode button week
false
true
showSwitchModeButtons.showDayButtonbooleantrueShow or hide the view mode button day
false
true
showSwitchModeButtons.showTimelineButtonbooleantrueShow or hide the view mode button timeline
false
true
showDatePickerbooleantrueShow or hide the date picker buttons
false
true

Events

NameParamsTypeDescription
onCellClickevent: React.MouseEvent<HTMLTableCellElement, MouseEvent>, row: any, day: anyEventTriggered when clicking on a cell
onEventsChangeitem: EventEventTriggered when clicking on an event
onAlertCloseButtonClickedevent: React.MouseEvent<HTMLButtonElement>EventTriggers when clicking on the close button of the notification alert
onTaskClickevent: React.MouseEvent<HTMLDivElement, MouseEvent>, task: EventEventTriggers when clicking on a task event
onDateChangeday: number, date: number | Date | nullEventTriggers when clicking on a date from the DatePicker

Event interface

NameTypeRequiredDescription
idnumber | stringtrueUnique id for every event
labelstringtrue
colorstring|undefinedfalseIf not set, the primary color of the theme will be applied
groupLabelstringtrue
startHourstringtrueHour string format with `HH:mm aaa`
endHourstringtrueHour string format with `HH:mm aaa`
datestringtrueDate string, must be formatted with `yyyy-MM-dd` date format
userstring|undefinedfalse