1.0.1 • Published 2 years ago
fullcalendar-copy-paste v1.0.1
FullCalendar Copy-paste Plugin
The Plugin expands for FullCalendar, which aims to add copy and paste features using shortcuts.
Installation
- Install this library in your project.
npm i fullcalendar-copy-paste
- Use the plugin.
import copyPastePlugin from 'fullcalendar-copy-paste'
new Calendar(calendarEl, {
plugins: [copyPastePlugin],
height: "100%",
}
Configuration
Exp:
new Calendar(calendarEl, {
plugins: [copyPastePlugin],
height: "100%",
previewCopy: false,
eventCopy: (trigger) => {
const oldEvent = trigger.oldEvent;
const newEvent = trigger.event;
const type = trigger.type;
if (trigger.type === 'copy') {
// do something
} else if (trigger.type === 'cut') {
// do something
}
}
});
API:
API for external code:
window.calendarUtils.copy(element as HTMLElement)
window.calendarUtils.cut(element as HTMLElement);
Demo:
Copy:
Cut:
Duplicate:
Contributor: ToanNguyen
1.0.1
2 years ago
1.0.0
2 years ago
0.1.10
2 years ago
0.1.11
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.9
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.0
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago