Skip to content

mmmonica50/calendar-week

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calendar week

Weekly clandar vanilla javascript widget

Basic usage example

  ...
  <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 &lt
arrowNext Icon for navigation to next weeks Fontawesome or HTML icon &gt
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