primevue
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primevue) [ • 1.26 kB
JavaScript
this.primevue=this.primevue||{},this.primevue.fullcalendar=function(e,t){"use strict";var n={name:"FullCalendar",props:{events:Array,options:null},calendar:null,watch:{events(e){e&&this.calendar&&(this.calendar.removeAllEventSources(),this.calendar.addEventSource(e))},options(e){if(e&&this.calendar)for(let t in e)this.calendar.setOption(t,e[t])}},mounted(){this.$el.offsetParent&&this.initialize()},updated(){!this.calendar&&this.$el.offsetParent&&this.initialize()},beforeUnmount(){this.calendar&&(this.calendar.destroy(),this.calendar=null)},methods:{initialize(){let t={themeSystem:"standard"},n=this.options?{...this.options,...t}:t;this.calendar=new e.Calendar(this.$el,n),this.calendar.render(),this.events&&(this.calendar.removeAllEventSources(),this.calendar.addEventSource(this.events))}}};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n"),n.render=function(e,n,i,a,s,r){return t.openBlock(),t.createBlock("div")},n}(FullCalendar,Vue);