Problems in upgrading to 4.0.1.
documentation says: "for registering a custom view use createPlugin instead of defineView"
but seems like this info is out of date also:
QUESTION: So what is exact code rows in v.4.0.1 to replace my old: "defineView" code?
I tried to do as said in: https://fullcalendar.io/docs/upgrading-from-v3
My old code:
import { defineView } from "fullcalendar";
defineView("reosurces", {
"class": OwnView,
defaults: {
duration: "00:15:00",
}
});
as with example:
import { createPlugin } from '@fullcalendar/core';
export default createPlugin({
views: {
specialView: {
type: 'theViewType',
slotLabalInterval: '06:00' // top-level property!
},
customView: CustomViewClass // can pass-in the class directly!
}
})