alloyscheulertest.ejs 1.2 KB
<html>
    <head>
        <script src="https://cdn.alloyui.com/3.0.1/aui/aui-min.js"></script>
        <link href="https://cdn.alloyui.com/3.0.1/aui-css/css/bootstrap.min.css" rel="stylesheet"></link>
    </head>
<body>
    <div id="wrapper">
        <div id="myScheduler"></div>
    </div>
    <script>
        YUI().use('aui-scheduler',
            function(Y)
            {
                // code goes here
                var events =
                [
                    {
                        content: '런닝맨',
                        endDate: new Date(2018, 11, 9, 5, 45),
                        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]
                    }
                );

            }
        );
    </script>
</body>
</html>