|
|
@@ -28,15 +28,15 @@ rows[2].parent = rows[1];
|
|
|
rows[0].parent = rows[1];
|
|
|
const data = dayjs().startOf("hour").hour(9);
|
|
|
const timeslots:Array<IEvent> = [
|
|
|
- {id:'1', title:"Fixed ressource" ,ressourceId:'3', start:data.subtract(3,"h").toDate(), end:data.toDate(), ressourceEditable:false,bgColor:"darkgreen"},
|
|
|
- {id:'2', title:"Fixed time" , ressourceId:'3', start:data.toDate(), end:data.endOf("hour").add(1,"h").toDate(), editable:false,bgColor:"FireBrick"},
|
|
|
+ {id:'1', content:"Fixed ressource" ,ressourceId:'3', start:data.subtract(3,"h").toDate(), end:data.toDate(), ressourceEditable:false,bgColor:"darkgreen"},
|
|
|
+ {id:'2', content:"Fixed time" , ressourceId:'3', start:data.toDate(), end:data.endOf("hour").add(1,"h").toDate(), editable:false,bgColor:"FireBrick"},
|
|
|
{id:'3', ressourceId:'4', start:data.add(1,"h").toDate(), end:data.endOf("hour").add(2,"h").toDate()},
|
|
|
{id:'4', ressourceId:'3', start:data.startOf("day").subtract(1,"h").toDate(), end:dayjs().endOf("hour").add(1,"h").toDate()}
|
|
|
]
|
|
|
for(let i = 5; i < 10; i++){
|
|
|
timeslots.push({
|
|
|
id : i.toFixed(0),
|
|
|
- title: "event " + i,
|
|
|
+ content: "event " + i,
|
|
|
ressourceId:'1',
|
|
|
start:data.add(i,'h').toDate(),
|
|
|
end:data.add(i,'h').endOf("hour").add(1,"h").toDate(),
|