|
před 2 týdny | |
---|---|---|
.. | ||
locales | před 2 týdny | |
LICENSE.md | před 2 týdny | |
README.md | před 2 týdny | |
index.cjs | před 2 týdny | |
index.d.ts | před 2 týdny | |
index.global.js | před 2 týdny | |
index.global.min.js | před 2 týdny | |
index.js | před 2 týdny | |
internal-common.cjs | před 2 týdny | |
internal-common.d.ts | před 2 týdny | |
internal-common.js | před 2 týdny | |
internal.cjs | před 2 týdny | |
internal.d.ts | před 2 týdny | |
internal.js | před 2 týdny | |
locales-all.cjs | před 2 týdny | |
locales-all.d.ts | před 2 týdny | |
locales-all.global.js | před 2 týdny | |
locales-all.global.min.js | před 2 týdny | |
locales-all.js | před 2 týdny | |
package.json | před 2 týdny | |
preact.cjs | před 2 týdny | |
preact.d.ts | před 2 týdny | |
preact.js | před 2 týdny |
FullCalendar core package for rendering a calendar
This package is never used alone. Use it with least one plugin (like daygrid):
npm install @fullcalendar/core @fullcalendar/daygrid
First, ensure there's a DOM element for your calendar to render into:
<body>
<div id='calendar'></div>
</body>
Then, instantiate a Calendar object with options and call its render
method:
import { Calendar } from '@fullcalendar/core'
import dayGridPlugin from '@fullcalendar/daygrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [
dayGridPlugin
// any other plugins
],
initialView: 'dayGridMonth',
weekends: false,
events: [
{ title: 'Meeting', start: new Date() }
]
})
calendar.render()