Giter Club home page Giter Club logo

Comments (2)

acerix avatar acerix commented on August 17, 2024

Please refer to the support page and use Stack Overflow for help. If this is a bug, please supply a runnable, stripped-down demonstration.

There is an example here for Vue3:

https://github.com/fullcalendar/fullcalendar-example-projects/tree/master/vue3-typescript

from fullcalendar-vue.

lemmel avatar lemmel commented on August 17, 2024

Hi

thanks for the quick reaction.

There is an example here for Vue3:

That is an example that I can't use as I use vanilla JS; nethertheless I used it to build my example code.

If this is a bug

I wouldn't dare to barge in a project and throw "bug" at first: I find it disrespectful.
So I prefer to be cautious; for such library behavior (CDNs that trigger an exception) I previously hit the spot by submitting a report: quasarframework/quasar#8113.




As I suspect that encountered behavior is not normal (and it seems that regular JS are not as tested as webpack/etc versions), you can find at the end of my message a more concise example.


Here is a more stripped one:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>HTML5 : Hello World Example</title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.12/vue.global.min.js" integrity="sha512-CLrLddI89KM+4mefYP8PbruyeARQAoQVwajhryM9hwM5bAeEFdtBwk0Wy6A9HlVeXyszFtXqOzg1Qy/A+Fwglg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/main.min.css" integrity="sha256-5veQuRbWaECuYxwap/IOE/DAwNxgm4ikX7nrgsqYp88=" crossorigin="anonymous">
        <script src="https://cdn.jsdelivr.net/npm/[email protected]/main.js" crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/[email protected]/locales-all.js" crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/dist/main.global.js" crossorigin="anonymous"></script>
    </head>
    <body>
        <div id="q-app">
            <template>
                <full-calendar
                class='demo-app-calendar'
                :options='calendarOptions'
                >
                    <template v-slot:eventContent='arg'>
                        <b>{{ arg.timeText }}</b>
                        <i>{{ arg.event.title }}</i>
                    </template>
                </full-calendar>
            </template>
        </div>
<script>

let todayStr = new Date().toISOString().replace(/T.*$/, '') // YYYY-MM-DD of today

var bar = null
const QApp = {
  el: '#q-app',
  data: function() {
    return {
      calendarOptions: {
        headerToolbar: {
          left: 'prev,next today',
          center: 'title',
          right: 'dayGridMonth,timeGridWeek,timeGridDay'
        },
        initialView: 'dayGridMonth',
        initialEvents: [
            {id: '54545454',title: 'All-day event',start: todayStr},
            {id: '98989898',title: 'Timed event',start: todayStr + 'T12:00:00'}
        ],
      }
    }
  },
  methods: {}
}
window.addEventListener('load', (event) => {
    const app = Vue.createApp(QApp)
    app.component('FullCalendar', FullCalendar)
    app.mount('#q-app')
});
</script>

</body>
</html>

from fullcalendar-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.