question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create calendar schedules using jquery

See original GitHub issue

Version

v1.11.0

Current Behavior

I have included the necessary js scripts jquery.min.js (version 3.4.0) tui-code-snippet.js tui-calendar.js and tui-calendar.css and in the javascript trying to create schedules with the code snippet:

// Write example code
    <div id="calendar" style="height: 800px;"></div>
    <script type="text/javascript">
        var cal = $('#calendar').tuiCalendar({
            usageStatistics: false,
            defaultView: 'month',
            taskView: true,
            template: {
                monthGridHeader: function(model) {
                    var date = new Date(model.date);
                    var template = '<span class="tui-full-calendar-weekday-grid-date">' + date.getDate() + '</span>';
                    return template;
                }
            }
        });
        cal.createSchedules([
            {
                id: '1',
                calendarId: '1',
                title: 'my schedule',
                category: 'time',
                dueDateClass: '',
                start: '2019-04-15T22:30:00+09:00',
                end: '2019-04-16T22:30:00+09:00'
            },
            {
                id: '2',
                calendarId: '1',
                title: 'second schedule',
                category: 'time',
                dueDateClass: '',
                start: '2018-01-18T17:30:00+09:00',
                end: '2018-01-19T17:31:00+09:00',
                isReadOnly: true    // schedule is read-only
            }
        ], true);
    </script>

Expected Behavior

I was expecting calendar with schedules on it. But get ‘function createSchedules not found’. How should I get access to the calendar object after its created using jquery?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gboyalscommented, Apr 22, 2019

Not sure if it is the issue here as I’m using React, but I created 2 calendars in order to get the lib working, as follows :

                calendars: [
                    {
                        id: '0',
                        name: 'Confirmé'
                    }, {
                        id: '1',
                        name: 'En attente'
                    }],
                defaultView: 'month',
                viewName: 'month',
                taskView: false,
                scheduleView: ['time'],
                template: {
                    monthGridHeader: function (model) {
                        const date = new Date(model.date);
                        return '<span class="tui-full-calendar-weekday-grid-date">' + date.getDate() + '</span>';
                    },
                },

I have the “Confirmé” calendar (as “confirmed”, roughly translated, I use this to check rendez-vous) and “En attente” (“On hold”, also for rendez-vous, taken but not confirmed yet).

What COULD work for you is adding this to your calendar.

0reactions
fklementcommented, Jul 15, 2020

@jungeun-cho Thanks for the prompt response. I’ll check on this today and let you know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does calendar scheduler work in jQuery? - eduCBA
The calendar scheduler is a function to create a calendar as per a daily, weekly, or monthly schedule. The calendar scheduler is a...
Read more >
Free jQuery Schedule Plugins - jQueryScript.Net
A tiny jQuery scheduler plugin to create a calendar with week view where users can pick a single or multiple hours of availability...
Read more >
Best jQuery scheduler and events calendar for web applications
The most popular free solution for schedule events in a web application.FullCalendar is a drag-n-drop jQuery plugin for displaying events on a full-sized ......
Read more >
Modern jQuery Scheduler & Time Grid - Mobiscroll
Responsive scheduler in jQuery for mobile and desktop with a modern look & feel. Featuring daily, weekly schedule & more.
Read more >
21 jQuery Calendars - Free Frontend
GC-Calendar · Event Calendar · Note App · User Calendar/Scheduler - Drag & Drop · jQuery Calendar · jQuery and Bootstrap 3/4 Year...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found