Here is an example of using getEvents() method:
(这是使用getEvents()方法的示例:)
export default class DemoApp extends React.Component {
calendarRef = React.createRef()
render() {
return (
<FullCalendar ref={this.calendarRef} />
)
}
someMethod() {
let calendarApi = this.calendarRef.current.getApi()
calendarApi.getEvents()
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…