@tpsengage/hour-parting-scheduler
v1.2.33
Published
Demo data:
Downloads
232
Readme
hour-parting-scheduler
Demo data:
const onChange = (slots: number[], schedule: string) => {
console.log(slots);
};
const scheduler: IScheduler[] = [{
startDate: new Date(),
readOnly: false,
uuid: "1",
title: "Global Schedule",
type: SchedulerType.daily,
slots: [1617256800, 1617260400, 1617264000, 1617350400],
onChange: onChange,
locations: [{
uuid: "not here",
name: "name 2",
restriction: [0, 1, 2, 3, 4, 5, 22, 23],
},
{
uuid: "2",
name: "name 1",
restriction: [0, 1, 2, 3, 4, 5, 22, 23],
},
],
},
// {
// startDate: new Date(),
// readOnly: false,
// slots: [],
// title: "Global Schedule",
// type: SchedulerType.hourly,
// locations: [
// {
// uuid: "not here",
// name: "name 2",
// restriction: [0],
// },
// {
// uuid: "2",
// name: "name 1",
// restriction: [0, 1, 2, 3, 4],
// },
// ],
// },
];