Can't Interact With Calendar #1333
-
Version2.1.3 Test EnvironmentChrome, Windows 10, JavaScript Version Current BehaviorThe Edit, Move, Create, and Delete functions don't work. Whenever I try to modify the calendar using the default popups or drag and drop it never saves to the calendar. These feature don't seem to be working on the example month view either. const Calendar = tui.Calendar;
const calendar = new Calendar('#calendar', {
defaultView: 'month',
});
calendar.setOptions({
useFormPopup: true,
useDetailPopup: true,
useCreationPopup: true,
isReadOnly: false,
});
calendar.setCalendars([
{
id: 'cal1',
name: 'Genoa',
backgroundColor: '#03bd9e',
},
{
id: 'cal2',
name: 'Turin',
backgroundColor: '#00a9ff',
},
{
id: 'cal3',
name: 'Jay',
backgroundColor: '#FFA500',
},
]); Expected BehaviorDo the popups work by default or do I have to do something to enable them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You need to register event handlers when you create, edit, and delete events. Like this example below: https://github.com/nhn/tui.calendar/blob/main/apps/calendar/examples/scripts/app.js#L192-L214 Check out the documentation for further information. |
Beta Was this translation helpful? Give feedback.
You need to register event handlers when you create, edit, and delete events.
Like this example below:
https://github.com/nhn/tui.calendar/blob/main/apps/calendar/examples/scripts/app.js#L192-L214
Check out the documentation for further information.