swipe-plugin-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

swipe-plugin-ts

swipe plugin typescript for fullcalendar

Custom swipe plugin from FullCalendar

The swipe ts React Plugin for FullCalendar

Installation

npm i swipe-plugin-ts

Usage

import useSwipePlugin from 'swipe-plugin-ts'

Create plugin

Create with 1000ms swipe speed

const swipePlugin = useSwipePlugin(refCalendar, 1000);

export function DemoApp() {
  return (
    <div>
      <h1>Demo App</h1>
      <FullCalendar ref={refCalendar}
        plugins={[swipePlugin]}
        initialView='dayGridMonth'
        weekends={false}
        events={events}
        eventContent={renderEventContent}
      />
    </div>
  )
}

Readme

Keywords

Package Sidebar

Install

npm i swipe-plugin-ts

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

7.01 kB

Total Files

3

Last publish

Collaborators

  • donny94