JSFiddle - React, Tailwind, and code Playground

by apuchkov

HTML

<script src="http://cdn.kendostatic.com/2013.3.1119/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.default.min.css">
Dragging doesn't work
<div id="scheduler"></div>

JavaScript

$("#scheduler").kendoScheduler({
    date: new Date(),
    startTime: new Date(),
    height: 600,
    views: [
        'week',
        { type: 'month', selected: true },
        'agenda'
    ],
    timezone: 'Etc/UTC',
    dataSource: {
        batch: false,
        transport: {
            read: {
                url: 'http://apuchkov.apiary.io/scheduler-task-id',
                dataType: 'json',
                contentType: 'application/json;charset=UTF-8',
                type: 'GET'
            },
            update: {
                url: 'http://apuchkov.apiary.io/scheduler-task-id',
                dataType: 'json',
                contentType: 'application/json;charset=UTF-8',
                type: 'PUT'
            },
            create: {
                url: 'http://apuchkov.apiary.io/scheduler-task-id',
                dataType: 'json',
                contentType: 'application/json;charset=UTF-8',
                type: 'POST'
            }
        },
        schema: {
            model: {
                id: 'taskId',
                fields: {
                    taskId: { from: 'taskId', type: 'string' },
                    title: { from: 'title', defaultValue: 'No title', validation: { required: true } },
                    start: { type: 'date', from: 'start' },
                    end: { type: 'date', from: 'end' },
                    startTimezone: { from: 'startTimezone' },
                    endTimezone: { from: 'endTimezone' },
                    description: { from: 'description' },
                    recurrenceId: { from: 'recurrenceId' },
                    recurrenceRule: { from: 'recurrenceRule' },
                    recurrenceException: { from: 'recurrenceException' },
                    isAllDay: { type: 'boolean', from: 'isAllDay' }
                }
            }
        }
    }
});