resourcesArray
The resources of the widget. Configured via the resources option.
Example
<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
date: new Date("2022/6/13"),
startTime: new Date("2022/6/13 07:00 AM"),
height: 600,
views: ["day", "week"],
timezone: "Etc/UTC",
dataSource: [
{
id: 1,
start: new Date("2022/6/13 10:00 AM"),
end: new Date("2022/6/13 11:00 AM"),
title: "Team Meeting",
roomId: 1
}
],
resources: [
{
field: "roomId",
name: "Rooms",
dataSource: [
{ text: "Meeting Room 101", value: 1, color: "#6eb3fa" },
{ text: "Meeting Room 201", value: 2, color: "#f58a8a" }
],
title: "Room"
}
]
});
var scheduler = $("#scheduler").data("kendoScheduler");
console.log("Resources:", scheduler.resources);
</script>
In this article