arshaw 5988b09026 RELEASING: Releasing 31 package(s) 1 year ago
..
src 563372ce01 luxon3 plugin 2 years ago
.eslintrc.cjs 613ab5765f Adjust pkg names to @fullcalenadar-tests/*, @fullcalenadar-scripts/*, and @fullcalenadar-monorepos/* 1 year ago
README.md 7481ac9c11 update luxon3 readme 2 years ago
package.json 5988b09026 RELEASING: Releasing 31 package(s) 1 year ago

README.md

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()