6.1.11 • Published 3 months ago

@fullcalendar/luxon3 v6.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

FullCalendar Luxon 3 Plugin

Enhanced date formatting, conversion, and named time zone functionality with Luxon 3

Installation

First, ensure Luxon is installed:

npm install luxon@3

Then, install the FullCalendar core package, the Luxon plugin, and any other plugins (like daygrid):

npm install @fullcalendar/core @fullcalendar/luxon3 @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugin:

import { Calendar } from '@fullcalendar/core'
import luxon3Plugin from '@fullcalendar/luxon3'
import dayGridPlugin from '@fullcalendar/daygrid'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [
    luxon3Plugin,
    dayGridPlugin
  ],
  initialView: 'dayGridMonth',
  titleFormat: 'LLLL d, yyyy', // use Luxon format strings
  timeZone: 'America/New_York' // enhance named time zones
})

calendar.render()