alloyscheulertest.ejs
979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div id="wrapper">
<div id="myScheduler"></div>
</div>
<script>
setTimeout(() =>
{
YUI().use('aui-scheduler',
function(Y)
{
// code goes here
//console.log(<%- pl %>);
var events =
[
{
content: '<%- pl[0].content%>',
endDate: new Date(2018, 11, 9, 5, 30),
startDate: new Date(2018, 11, 9, 1, 30),
disabled: true
}
];
var weekView = new Y.SchedulerWeekView();
myScheduler = new Y.Scheduler(
{
boundingBox: '#myScheduler',
date: new Date(Date.now().getYear, Date.now().getMonth, Date.now().getDay),
items: events,
render: true,
views: [weekView]
}
);
});
}, 1000);
</script>