alloyscheulertest.ejs 979 Bytes

<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>