fullcalendar.js 848 B

123456789101112131415161718192021222324
  1. // import FullCalendar from "@fullcalendar/vue3";
  2. // import FullCalendar from "../elements/lib/fullcalendar/index.global.js";
  3. // import FullCalendar from "/index.global.min.js";
  4. // import FullCalendar from "/_nicegui/1.4.0/libraries/f2236eb73ecd4b599de1d20d128079e5/index.global.min.js";
  5. import FullCalendar from "/_nicegui/1.4.0/libraries/1f5b0e0b0b0b0b0b0b0b0b0b0b0b0b0b/index.global.min.js";
  6. export default {
  7. template: "<div></div>",
  8. props: {
  9. options: Array,
  10. },
  11. mounted() {
  12. this.options.eventClick = (info) => this.$emit("click", { info });
  13. this.calendar = new FullCalendar.Calendar(this.$el, this.options);
  14. this.calendar.render();
  15. },
  16. methods: {
  17. update_calendar() {
  18. if (this.calendar) {
  19. this.calendar.setOption("events", this.options.events);
  20. this.calendar.render();
  21. }
  22. },
  23. },
  24. };