swipe-plugin-ts
v1.0.5
Published
custom swipe plugin for fullcalendar
Downloads
5
Readme
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>
)
}