Inserting html calendar into react
I need a calendar in my React app and I want to use the calendar from Metronic html admin dashboard. How can I do it?
Replies (1)
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Hi,
Thank you for reaching out to us.
In our React version, we currently don't utilize the React-Fullcalendar plugin.
You can install React-Fullcalendar dependencies using the following command:
npm install --save \
@fullcalendar/core \
@fullcalendar/react \
@fullcalendar/daygrid After installation, you can use it in your component as demonstrated below:
<FullCalendar
plugins={[ dayGridPlugin ]}
initialView="dayGridMonth"
weekends={false}
events={[
{ title: "event 1", date: "2019-04-01" },
{ title: "event 2", date: "2019-04-02" }
]}
/> For more examples, refer to the official Fullcalendar docs.
Regards,
Lauris Stepanovs,
Keenthemes Support Team