期間:2017-09-06 ~ 2017-09-07
タイトル:イベントA
イベントのタイトルには「イベントA」だけを表示したいのですが
期間:2017-09-06 ~ 2017-09-07
と設定すると、「2017-09-06」のみのイベントとして表示されます。
また
期間:2017-09-06T00:00:01 ~ 2017-09-07T23:59:59
と設定すると「2017-09-06 ~ 2017-09-07」にはなるのですが
イベントのタイトルが「12a イベントA」と表示されてしまいます。
解決策としては
期間:2017-09-06 ~ 2017-09-08
を設定すればいいのですが、DBから取得するデータに+1日の処理を入れる必要がありますし、イベントの入力画面でも同様の工夫が必要になりますので、他に解決策などありましたら
ご教授の程よろしくお願いします。
<link href='../lib/fullcalendar.min.css' rel='stylesheet' /> <link href='../scheduler.min.css' rel='stylesheet' /> <script src='../lib/moment.min.js'></script> <script src='../lib/jquery.min.js'></script> <script src='../lib/fullcalendar.min.js'></script> <script src='../scheduler.min.js'></script> <script> $(function() { // document ready $('#calendar').fullCalendar({ now: '2017-09-07', editable: false, aspectRatio: 1.8, scrollTime: '00:00', header: { left: 'today prev,next', center: 'title', right: 'timeline20Days,timelineMonth,timelineYear' }, defaultView: 'timelineMonth', views: { timeline20Days: { type: 'timeline', duration: { days: 20 } } }, resourceLabelText: 'Rooms', resources: [ { id: 'a', title: 'Auditorium A', eventColor: 'green'}, { id: 'b', title: 'Auditorium B', eventColor: 'orange' } ], events: [ { id: '1', resourceId: 'a', start: '2017-09-06T00:00:01', end: '2017-09-07T23:59:59', title: 'event 1' }, { id: '2', resourceId: 'b', start: '2017-09-06', end: '2017-09-07', title: 'event 2' } ] }); }); </script>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。