Our powerful JS Calendar component
Hi
I am using react version of Bryntum calendar, my question i wan to customize my rendering using your example: https://www.bryntum.com/examples/calendar/custom-rendering/
now the thing is how i can use these CrudManager / Calendar etc ... classes in react
when i import these using below code:
import { BryntumCalendar, CrudManager, Calendar } from '@bryntum/calendar-react';
it give me error: Attempted import error: 'CrudManager' is not exported from '@bryntum/calendar-react'
also check my screen shot of the page.
thanks
Attachments
Screen Shot 2021-07-12 at 1.42.30 PM.png (108.52 KiB) Viewed 434 times
Hi!
We have two separate packages.
One @bryntum/calendar
for API classes and @bryntum/calendar-react
for React wrappers for API widgets.
CrudManager
and Calendar
are native Bryntum API classes and exported from @bryntum/calendar
API package.
To use native API package classes with wrappers import them from @bryntum/calendar/calendar.umd
Use this instead
import { CrudManager, Calendar } from '@bryntum/calendar/calendar.umd';
Please check this integration guide to work with API classes and Wrappers for React.
https://www.bryntum.com/docs/calendar/#Calendar/guides/integration/react.md
Thanks
but how i can use the instance of CrudManager with
<BryntumCalendar
crudManager />
using above code it shows me an empty page
Uncaught TypeError: _0xdd6025[_0x5d95(...)] is not a function