1.0.1 • Published 3 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
3 years ago
1.0.0
3 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.9
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.0
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago