@fullcalendar/luxon
@fullcalendar/luxon
npm i @fullcalendar/luxon
@fullcalendar/luxon

@fullcalendar/luxon

Full-sized drag & drop event calendar in JavaScript

by fullcalendar

6.1.4 (see all)License:MITTypeScript:Built-In
npm i @fullcalendar/luxon
Readme

FullCalendar Luxon 1 Plugin

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

Installation

First, ensure Luxon is installed:

npm install luxon@1

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

npm install @fullcalendar/core @fullcalendar/luxon @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugin:

import { Calendar } from '@fullcalendar/core'
import luxonPlugin from '@fullcalendar/luxon'
import dayGridPlugin from '@fullcalendar/daygrid'

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

calendar.render()
VersionTagPublished
6.1.4
latest
1mo ago
5.11.4
legacy
2mos ago
6.0.0-beta.4
beta
3mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate