Thursday, 15 July 2010

Is there a way to do this in FullCalendar jquery -


You can call Kids Arts School Day from April 12 to 17 April. This will fill up once a day like "Kids Art School Day", how do you show the same thing every day as a traditional paper calendar? On April 12, it is called "Kids Art School Day", April 13 says "Kids Art School Day", April 14 says "Kids Art School Day" ... ... all these are saying the same thing ? I like it in events, such as

  'title': 'Kids Art School Day', 'Start': '2015-04-13', 'End': '2015-' Art school day ',' Start ':' 2015-04-14 ',' End ':' 7-13 ',' Colors ':' #FFFFF ',' TextColor ':' # 3300FF 'Title' 2015-07 I have set a limit but they want each box to have the same thing: - 14 ',' color ':' #FFFF ',' textclosure ':' # 3300ff ' ..im .. ideas? There is a lot of things in the calendar ... there will be a lot to make this JSA readable ...   

This is not directly supported and hence the solution is a bit difficult.

Basically, you break the event in one day's event when they are loaded. Use it for

  event: function (start, end, timezone, callback) {// Get an event with an AJAX call or whatever // here , They have been declared globally as 'Events' var chunkedEvents = []; (Var i = 0; i & lt; events.length; i ++) {var day = moment (events [i] .end) .diff (events [i]. Start, 'day'); // event length if (types of events [i] .end! == "undefined" & amp;; & amp;; day; 0) {for (var j = 0; j & lt; = days; j + +) {ChunkedEvents.push $. Extensions ({}, events [i], {start: moment (events [i] .start). Subtracts (j, 'day'), intervals (events [i] .and). Subtracrack (day + j, 'Day')}))}} Other {selected events pash (events [i]); }} Callback (selected events); }  


No comments:

Post a Comment