Answers for "fullcalendar react"

1

fullcalendar react

import interactionPlugin from "@fullcalendar/interaction"; // needed for dayClick

export default class DemoApp extends React.Component {

  render() {
    return (
      <FullCalendar dateClick={this.handleDateClick} plugins={[ dayGridPlugin, interactionPlugin ]} />
    )
  }

  handleDateClick = (arg) => { // bind with an arrow function
    alert(arg.dateStr)
  }

}
Posted by: Guest on May-15-2020
0

fullcalendar react

@import '~@fullcalendar/core/main.css';
@import '~@fullcalendar/daygrid/main.css';
Posted by: Guest on May-15-2020
1

fullcalendar react

import React from 'react'
import FullCalendar from '@fullcalendar/react'
import dayGridPlugin from '@fullcalendar/daygrid'

import './main.scss' // webpack must be configured to do this

export default class DemoApp extends React.Component {

  render() {
    return (
      <FullCalendar defaultView="dayGridMonth" plugins={[ dayGridPlugin ]} />
    )
  }

}
Posted by: Guest on May-15-2020

Code answers related to "fullcalendar react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language