Node Package Manager

    @fullcalendar/luxon2
    TypeScript icon, indicating that this package has built-in type declarations

    6.1.1 • Public • Published

    FullCalendar Luxon 2 Plugin

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

    Installation

    First, ensure Luxon is installed:

    npm install luxon@2

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

    npm install @fullcalendar/core @fullcalendar/luxon2 @fullcalendar/daygrid

    Usage

    Instantiate a Calendar with the necessary plugin:

    import { Calendar } from '@fullcalendar/core'
    import luxon2Plugin from '@fullcalendar/luxon2'
    import dayGridPlugin from '@fullcalendar/daygrid'
    
    const calendarEl = document.getElementById('calendar')
    const calendar = new Calendar(calendarEl, {
      plugins: [
        luxon2Plugin,
        dayGridPlugin
      ],
      initialView: 'dayGridMonth',
      titleFormat: 'LLLL d, yyyy', // use Luxon format strings
      timeZone: 'America/New_York' // enhance named time zones
    })
    
    calendar.render()

    Install

    npm i @fullcalendar/luxon2

    DownloadsWeekly Downloads

    10,237

    Version

    6.1.1

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • arshaw