1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
Oinktube/node_modules/@fullcalendar/interaction
2024-08-05 11:37:04 -03:00
..
index.cjs Libs updates and new version with option to pin videos on channel 2024-08-05 11:37:04 -03:00
index.d.ts Add Calendar 2024-05-03 12:16:27 -03:00
index.global.js Libs updates and new version with option to pin videos on channel 2024-08-05 11:37:04 -03:00
index.global.min.js Libs updates and new version with option to pin videos on channel 2024-08-05 11:37:04 -03:00
index.js Libs updates and new version with option to pin videos on channel 2024-08-05 11:37:04 -03:00
LICENSE.md Add Calendar 2024-05-03 12:16:27 -03:00
package.json Libs updates and new version with option to pin videos on channel 2024-08-05 11:37:04 -03:00
README.md Add Calendar 2024-05-03 12:16:27 -03:00

FullCalendar Interaction Plugin

Calendar functionality for event drag-n-drop, event resizing, date clicking, and date selecting

Installation

Install the FullCalendar core package, the interaction plugin, and any other plugins (like daygrid):

npm install @fullcalendar/core @fullcalendar/interaction @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugins and options:

import { Calendar } from '@fullcalendar/core'
import interactionPlugin from '@fullcalendar/interaction'
import dayGridPlugin from '@fullcalendar/daygrid'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [
    interactionPlugin,
    dayGridPlugin
  ],
  initialView: 'dayGridMonth',
  editable: true, // important for activating event interactions!
  selectable: true, // important for activating date selectability!
  events: [
    { title: 'Meeting', start: new Date() }
  ]
})

calendar.render()