Socket
Socket
Sign inDemoInstall

@fullcalendar/resource

Package Overview
Dependencies
3
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fullcalendar/resource

Base support for resources, required by resource views


Version published
Weekly downloads
53K
increased by7.94%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 20 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc