Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@fullcalendar/common
Advanced tools
@fullcalendar/common is a core package for the FullCalendar library, which provides a highly customizable and feature-rich calendar component for web applications. It includes utilities and base components that are used to build various calendar views and functionalities.
Rendering a Basic Calendar
This code demonstrates how to render a basic calendar using the @fullcalendar/common package. It initializes a calendar with a month view and renders it in the specified HTML element.
import { Calendar } from '@fullcalendar/common';
const calendarEl = document.getElementById('calendar');
const calendar = new Calendar(calendarEl, {
initialView: 'dayGridMonth'
});
calendar.render();
Adding Events
This code sample shows how to add events to the calendar. The events array contains objects with event details such as title, start date, and end date.
import { Calendar } from '@fullcalendar/common';
const calendarEl = document.getElementById('calendar');
const calendar = new Calendar(calendarEl, {
initialView: 'dayGridMonth',
events: [
{ title: 'Event 1', start: '2023-10-01' },
{ title: 'Event 2', start: '2023-10-05', end: '2023-10-07' }
]
});
calendar.render();
Customizing Event Appearance
This example demonstrates how to customize the appearance of events by setting properties like color. Each event object can have additional properties to control its look and feel.
import { Calendar } from '@fullcalendar/common';
const calendarEl = document.getElementById('calendar');
const calendar = new Calendar(calendarEl, {
initialView: 'dayGridMonth',
events: [
{ title: 'Event 1', start: '2023-10-01', color: 'red' },
{ title: 'Event 2', start: '2023-10-05', end: '2023-10-07', color: 'blue' }
]
});
calendar.render();
react-big-calendar is a similar package that provides a calendar component for React applications. It offers a range of views (month, week, day) and supports event handling. Compared to @fullcalendar/common, react-big-calendar is more tightly integrated with React and may be easier to use in React projects.
tui-calendar is a JavaScript calendar library that provides various views and features like drag-and-drop, recurring events, and customizable themes. It is similar to @fullcalendar/common in terms of functionality but offers a different API and styling options.
fullcalendar is the main package that includes @fullcalendar/common along with other modules for different views and functionalities. It provides a comprehensive solution for calendar needs in web applications, with extensive customization options and a wide range of features.
5.5.1 (2021-01-16)
FAQs
internal package
The npm package @fullcalendar/common receives a total of 173,539 weekly downloads. As such, @fullcalendar/common popularity was classified as popular.
We found that @fullcalendar/common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.