JSFiddle - React, Tailwind, and code Playground

by Kamlesh Gupta

HTML

<script src="http://docs.dhtmlx.com/scheduler/codebase/dhtmlxscheduler.js"></script>
<script src="http://docs.dhtmlx.com/scheduler/codebase/ext/dhtmlxscheduler_timeline.js"></script>
<link rel="stylesheet" href="http://docs.dhtmlx.com/scheduler/codebase/dhtmlxscheduler.css">
<div id="scheduler_here" class="dhx_cal_container" style='width:1200px; height:900px;'>
		<div class="dhx_cal_navline">
			<div class="dhx_cal_prev_button">&nbsp;</div>
			<div class="dhx_cal_next_button">&nbsp;</div>
			<div class="dhx_cal_today_button"></div>
			<div class="dhx_cal_date"></div>
			<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
			<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
			<div class="dhx_cal_tab" name="timeline_tab" style="right:280px;"></div>
			<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
		</div>
		<div class="dhx_cal_header">
		</div>
		<div class="dhx_cal_data">
		</div>		
	</div>

JavaScript

scheduler.locale.labels.timeline_tab = "Timeline";
scheduler.locale.labels.section_custom="Section";
scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=true;
scheduler.config.api_date="%Y-%m-%d %H:%i";
scheduler.config.lightbox.sections=[
  {name:"ABC", height:130, map_to:"text", type:"textarea" , focus:true},
{name:"ABC", height:130, map_to:"text", type:"textarea" , focus:true},{name:"ABC", height:130, map_to:"text", type:"textarea" , focus:true},{name:"ABC", height:130, map_to:"text", type:"textarea" , focus:true},{name:"ABC", height:130, map_to:"text", type:"textarea" , focus:true},];

//===============
//Configuration
//===============
var sections=[
    {key:1, label:"James Smith"},
    {key:2, label:"John Williams"},
    {key:3, label:"David Miller"},
    {key:4, label:"Linda Brown"}
];



scheduler.createTimelineView({
    name:	"timeline",
    x_unit:	"day",
    x_size:5,
    x_date:	"%d.%m",
    y_unit:	sections,
    y_property:	"section_id",
    render:"bar"
});


scheduler.init('scheduler_here',new Date(2014,3,7),"timeline");

scheduler.addEvent({
    start_date: "2014-04-07 10:00",
    end_date:   "2014-04-07 19:00",
    text:   "Meeting",
    section_id:1
});