Closed jujogi closed 5 years ago
What is the correct way to obtain the information about any event?
<full-calendar :events="events" @event-selected="selectedEvent"/>
<script> import moment from 'moment' export default { name: 'calendar', data () { return { events: [ { title: 'Peter John M. Doe', allDay: false, start: moment().hours(6).minutes(0) }, ] } }, methods: { selectedEvent(calEvent) { console.log(calEvent) } } } </script>
And my package.json:
"dependencies": { "date-fns": "^1.30.1", "vue": "^2.5.11", "vue-full-calendar": "^2.7.0", "vue-fullcalendar": "^1.0.9", "vuejs-datepicker": "^1.5.4" }
I can not display the event information when I click on it. Thanks for help!
What is the correct way to obtain the information about any event?
<full-calendar :events="events" @event-selected="selectedEvent"/>
And my package.json:
I can not display the event information when I click on it. Thanks for help!