Weekly clandar vanilla javascript widget
...
<div id="calendar"></div>
...
$("#calendar").cwCalendar();
Option | Description | Values | Default |
---|---|---|---|
date | Date() object or javascript timestamp |
Date() |
new Date() |
title | Show calendar title | Boolean | True |
nav | Show week navigation arrows | Boolean | True |
firstDay | Day to start the week (Sunday or Monday) | Sunday = 0 Monday = 1 |
0 |
futureWeeks | Number of weeks to show in the future | Int > 0 | 12 |
arrowPrev | Icon for navigation to previous weeks | Fontawesome or HTML icon | < |
arrowNext | Icon for navigation to next weeks | Fontawesome or HTML icon | > |
weekdayNames | Weekday names | Array | Domingo Lunes Martes Miércoles Jueves Viernes Sábado |
monthNames | Month names | Array | Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre |
onChooseDate | Date select callback | Function | Not set |