Permalink
Browse files

replace columnHeaderLength option with columntHeaderFormat

  • Loading branch information...
1 parent d90b8ee commit a330fa101090745dd8a2f0fce10b8e408ba79d85 Alexey Osipenko committed Dec 6, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 readme.md
  2. +2 −2 src/main.js
View
@@ -128,9 +128,9 @@ The following options are available for configuration.
The following settings alter the internal behavior of Kalendae and should only be changed by advanced users.
-- `columnHeaderLength`: The number of characters of the week day name to display in column headers.
- - Default is `2`
+- `columnHeaderFormat`: The format of moment data of the week day name to display in column headers.
+ - Default is `dd`
- `titleFormat`: Format string used in the calendar title.
- Default is `"MMMM, YYYY"`
View
@@ -35,7 +35,7 @@ var Kalendae = function (targetElement, options) {
//generate the column headers (Su, Mo, Tu, etc)
i = 7;
while (i--) {
- columnHeaders.push( startDay.format('ddd').substr(0,opts.columnHeaderLength) );
+ columnHeaders.push( startDay.format(opts.columnHeaderFormat) );
startDay.add('days',1);
}
@@ -228,7 +228,7 @@ Kalendae.prototype = {
format: null, /* string used for parsing dates. */
subscribe: null, /* object containing events to subscribe to */
- columnHeaderLength: 2, /* number of characters to show in the column headers */
+ columnHeaderFormat: 'dd', /* number of characters to show in the column headers */
titleFormat: 'MMMM, YYYY', /* format mask for month titles. See momentjs.com for rules */
dayNumberFormat: 'D', /* format mask for individual days */
dayAttributeFormat: 'YYYY-MM-DD', /* format mask for the data-date attribute set on every span */

0 comments on commit a330fa1

Please sign in to comment.