Twipped / Kalendae

A javascript date picker that just works.
MIT License
1.99k stars 285 forks source link

weekStart option doesn't working #195

Open nhat-tong opened 7 years ago

nhat-tong commented 7 years ago

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,