@fullcalendar/resource
@fullcalendar/resource
npm i @fullcalendar/resource
@fullcalendar/resource

@fullcalendar/resource

Premium full-sized drag & drop calendar & scheduler in JavaScript

by fullcalendar

6.1.4 (see all)License:SEE LICENSE IN LICENSE.mdTypeScript:Built-In
npm i @fullcalendar/resource
Readme

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()
VersionTagPublished
6.1.4
latest
1mo 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