mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-20 12:20:49 +08:00
update tests for hiddenDays
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
//defaultView: 'agendaWeek',
|
||||
|
||||
//firstDay: 1,
|
||||
//hiddenDays: [ 4, 6 ], // hide thursday and saturday
|
||||
//isRTL: true,
|
||||
//minTime: '6:30am',
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='../build/out/fullcalendar.css' rel='stylesheet' />
|
||||
<link href='../build/out/fullcalendar.print.css' rel='stylesheet' media='print' />
|
||||
<script src='../build/out/jquery.js'></script>
|
||||
<script src='../build/out/jquery-ui.js'></script>
|
||||
<script src='../build/out/fullcalendar.js'></script>
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var date = new Date();
|
||||
var d = date.getDate();
|
||||
var m = date.getMonth();
|
||||
var y = date.getFullYear();
|
||||
|
||||
$('#calendar').fullCalendar({
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
|
||||
},
|
||||
editable: true,
|
||||
|
||||
year: 2013,
|
||||
month: 6, // july
|
||||
|
||||
//weekNumbers: true,
|
||||
isRTL: true,
|
||||
//selectable: true,
|
||||
//firstDay: 2,
|
||||
//weekends: false,
|
||||
hiddenDays: [ 4 ], // thursday
|
||||
|
||||
events: [
|
||||
{
|
||||
title: '1 Day',
|
||||
start: new Date(2013, 6, 17)
|
||||
},
|
||||
{
|
||||
title: '2 Day',
|
||||
start: new Date(2013, 6, 17),
|
||||
end: new Date(2013, 6, 18)
|
||||
},
|
||||
{
|
||||
title: '3 Day',
|
||||
start: new Date(2013, 6, 17),
|
||||
end: new Date(2013, 6, 19)
|
||||
},
|
||||
{
|
||||
title: '1 Day IN GAP',
|
||||
start: new Date(2013, 6, 18) // won't be visible
|
||||
}
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin-top: 40px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
|
||||
}
|
||||
|
||||
#calendar {
|
||||
width: 900px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id='calendar'></div>
|
||||
</body>
|
||||
</html>
|
||||
+4
-1
@@ -32,7 +32,10 @@
|
||||
|
||||
isRTL: true,
|
||||
firstDay: 1,
|
||||
weekends: false,
|
||||
//weekends: false,
|
||||
//hiddenDays: [ 4 ], // hide thursday
|
||||
|
||||
//weekNumbers: true,
|
||||
|
||||
minTime: '8am',
|
||||
maxTime: '11:30pm',
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
//minTime: 7,
|
||||
//weekends: false,
|
||||
//allDaySlot: false,
|
||||
//hiddenDays: [ 2, 4 ], // tuesdays and thursdays
|
||||
|
||||
selectable: true,
|
||||
/*
|
||||
|
||||
+61
-2
@@ -21,11 +21,34 @@
|
||||
center: 'title',
|
||||
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
|
||||
},
|
||||
editable: true,
|
||||
isRTL: false,
|
||||
|
||||
year: 2010,
|
||||
month: 10,
|
||||
date: 14,
|
||||
|
||||
editable: true,
|
||||
|
||||
//isRTL: true,
|
||||
//hiddenDays: [ 3 ],
|
||||
|
||||
/*
|
||||
// check to make sure there is no empty space where event should be
|
||||
eventRender: function(event) {
|
||||
if (event.title == 'event4') {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
*/
|
||||
|
||||
/*
|
||||
// KNOWN BUG: there shoulnd't be an empty space
|
||||
eventRender: function(event) {
|
||||
if (event.title == 'timed event 1') {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
*/
|
||||
|
||||
events: [
|
||||
{
|
||||
title: 'event1',
|
||||
@@ -48,6 +71,42 @@
|
||||
{
|
||||
title: 'event5',
|
||||
start: '2010-11-18'
|
||||
},
|
||||
{
|
||||
title: 'event6 with a long title dude',
|
||||
start: '2010-11-25'
|
||||
},
|
||||
{
|
||||
title: 'event7',
|
||||
start: '2010-11-26'
|
||||
},
|
||||
{
|
||||
title: 'timed event 1',
|
||||
start: '2010-11-16T08:30:00',
|
||||
end: '2010-11-16T16:00:00',
|
||||
allDay: false
|
||||
},
|
||||
{
|
||||
title: 'timed event 2',
|
||||
start: '2010-11-16T09:30:00',
|
||||
end: '2010-11-16T11:30:00',
|
||||
allDay: false
|
||||
},
|
||||
{
|
||||
title: 'Long Event', // this allday event should be above...
|
||||
start: '2010-11-22',
|
||||
end: '2010-11-22'
|
||||
},
|
||||
{
|
||||
title: 'Birthday Party', // ...this timed event
|
||||
start: '2010-11-22T19:00:00',
|
||||
end: '2010-11-22T22:30:00',
|
||||
allDay: false
|
||||
},
|
||||
{
|
||||
title: 'An event', // this should be below the allday event
|
||||
start: '2010-11-22T00:00:00',
|
||||
allDay: false
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user