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

6.1.15 • Public • Published

FullCalendar Resource Plugin

Base support for resources, required by resource views

Installation

It is necessary to install this package as a peer dependency of any other package that utilizes resources (such as resource-timeline view):

npm install @fullcalendar/core @fullcalendar/resource @fullcalendar/resource-timeline

Usage

This package is especially useful for obtaining the ResourceInput TypeScript type:

import { Calendar } from '@fullcalendar/core'
import { ResourceInput } from '@fullcalendar/resource'
import resourceTimelinePlugin from '@fullcalendar/resource-timeline'

const resources: ResourceInput[] = [
  { title: 'Resource A' },
  { title: 'Resource B' }
]

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [ resourceTimelinePlugin ],
  initialView: 'resourceTimeline',
  resources: resources
})

calendar.render()

Package Sidebar

Install

npm i @fullcalendar/resource

Weekly Downloads

56,393

Version

6.1.15

License

SEE LICENSE IN LICENSE.md

Unpacked Size

232 kB

Total Files

14

Last publish

Collaborators

  • arshaw