JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Scheduler Resources › Reply To: Scheduler Resources
Hi MilesGibson,
the Smart.Scheduler supports one resource item per event. That means that you can have any number of resources and an event can have any number of resources assigned but only one resource item per event. For example if you have a resource called employees its dataSource
can contain a list of items where each item is a separate employee. You can assign one employee to an event since all employees are part of the same resource. However if you create the employees as separate resources instead you will be able to set multiple resources(employees) to an event, for example:
dataSource = [
{
label: 'Website Re-Design Plan',
dateStart: new Date(year, month, date, 9, 30),
dateEnd: new Date(year, month, date, 11, 30),
andrew: 1,
brian: 1,
steven: 1
}
];
resources = [
{
label: 'andrew',
value: 'andrew',
dataSource: [
{
label: 'Andrew Olsen',
id: 1
}
]
},
{
label: 'brian',
value: 'brian',
dataSource: [
{
label: 'Brian Reed',
id: 1
}
]
},
{
label: 'steven',
value: 'steven',
dataSource: [
{
label: 'Steven Shields',
id: 1
}
]
}
];
Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.com