slotByElement
Get the time slot from given element.
Parameters
element Element|jQuery
Returns
Object
The time slot.
Example - save a new event
<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
date: new Date("2013/6/6")
});
setTimeout(function(){
var scheduler = $("#scheduler").data("kendoScheduler");
var element = scheduler.view().content.find("tr:first td:first");
var slot = scheduler.slotByElement(element);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("slot startDate: " + slot.startDate);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("slot endDate: " + slot.endDate);
})
</script>