How to create jQuery calendar with only week view, without hours component? -
i using primefaces schedule crate event application, prime faces doesnt support custom views , default views not suited needs, start searching jquery solution have found this.
i using fullcalendar plugin, http://jsfiddle.net/qe53etk5/ ,
$(document).ready(function() {
$('#calendar').fullcalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaweek,agendaday' }, defaultdate: '2014-06-12', defaultview: 'basicweek', editable: true, }); }); 
but cant week view one week (from monday monday) without time (days , hours) component!
and need display week, this, need view 1 week, not whole month.

based on this: https://fullcalendar.io/docs/views/available_views/ , can use "basicweek" view:
$('#calendar').fullcalendar({ defaultview: 'basicweek', [...] }); or, if still want primefaces:
<p:schedule view="basicweek" [...] > then, may want add events start date (see: fullcalendar - display 'allday' slot when in agenda view (weekly or daily)):
{ title: 'all day event', start: new date(y, m, d) } or create allday events primefaces:
defaultscheduleevent.setallday(true);
Comments
Post a Comment