componentWillMount(){
moment.locale('ko');
BigCalendar.momentLocalizer(moment);
}
let formats = {
dayFormat: (date, culture, localizer) =>
localizer.format(date, 'ddd MM/dd', culture),
}
<DragAndDropCalendar selectable
events={calendarData}
onEventDrop={::this.moveEvent}
messages={messages}
formats={formats}
onSelectSlot={::this.onSelectSlot}
onSelectEvent={::this.onSelectEvent} />
The following error occurs :
debuggability.js:874 Unhandled rejection TypeError: Cannot read property 'filter' of undefined
This is my code ,they are only for your reference.
let formats = {
timeGutterFormat: 'HH:mm',
eventTimeRangeFormat: ({
start,
end
}, culture, local) =>
local.format(start, 'HH:mm', culture) + '-' +
local.format(end, 'HH:mm', culture),
dayFormat: 'MM-DD' + ' ' + '鏄熸湡' + 'dd',
agendaTimeRangeFormat: ({
start,
end
}, culture, local) =>
local.format(start, 'HH:mm', culture) + '-' +
local.format(end, 'HH:mm', culture),
agendaDateFormat: 'MM-DD' + ' ' + '鏄熸湡' + 'dd',
}
Most helpful comment
This is my code ,they are only for your reference.