Kalendae icon indicating copy to clipboard operation
Kalendae copied to clipboard

weekStart option doesn't working

Open nhat-tong opened this issue 8 years ago • 0 comments

Hi there,

I would like to display the calendar from Monday to Friday. In my script, I configured the option weekStart = 1 but it doesn't working (it started always from Sunday).

<script type="text/javascript" charset="utf-8">
		new Kalendae(document.body, {
			months:1,
			mode:'week',
			weekStart: 1,
			direction:'future',
			blackout: function (date) {
				return [1,0,0,0,0,0,1][Kalendae.moment(date).day()]; //blackout weekends
			}
		});
</script>

What can I do? Thanks in advance,

nhat-tong avatar Nov 18 '16 16:11 nhat-tong