Calendar logo Calendar

Week

constructor Object: config

Default config:

config = {
  startDay: 0,
  namesType: 'large',
  names: {
    large: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
    short: ['Sun.', 'Mon.', 'Tues.', 'Wed.', 'Thurs.', 'Fri.', 'Sat.'],
    mini: ['Su', 'M', 'Tu', 'W', 'Th', 'F', 'Sa']
  }
}

Properties

config Object

Current configuration.

Methods

getStartDay Number

Return week start day.

getDays String: type Array

Return week days names starting from week start day.