swipe-plugin-ts
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -105,7 +105,9 @@ import { createPlugin } from '@fullcalendar/core'; | ||
setTimeout(() => { | ||
table.style.backgroundColor = ''; | ||
table.style.transform = ''; | ||
tableWrapper.style.overflow = ''; | ||
}, ANIMATE_TIME); | ||
requestAnimationFrame(() => { | ||
requestAnimationFrame(() => { | ||
table.style.backgroundColor = ''; | ||
table.style.transform = ''; | ||
tableWrapper.style.overflow = ''; | ||
}); | ||
}); | ||
@@ -112,0 +114,0 @@ shadowTable.remove(); |
{ | ||
"name": "swipe-plugin-ts", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "custom swipe plugin for fullcalendar", | ||
@@ -5,0 +5,0 @@ "main": "calendar-plugin.ts", |
# swipe-plugin | ||
swipe plugin for fullcalendar | ||
# Custom from FullCalendar | ||
The official [React](https://reactjs.org/) Component for [FullCalendar](https://fullcalendar.io) | ||
## Installation | ||
```sh | ||
npm i swipe-plugin-ts | ||
``` | ||
## Usage | ||
Render a `FullCalendar` plugins: | ||
```jsx | ||
import useSwipePlugin from 'swipe-plugin-ts' | ||
const swipePlugin = useSwipePlugin(refCalendar); | ||
export function DemoApp() { | ||
return ( | ||
<div> | ||
<h1>Demo App</h1> | ||
<FullCalendar | ||
plugins={[swipePlugin]} | ||
initialView='dayGridMonth' | ||
weekends={false} | ||
events={events} | ||
eventContent={renderEventContent} | ||
/> | ||
</div> | ||
) | ||
} | ||
``` |
6832
151
40