ludo.calendar.Calendar

ludo.calendar.


new ludo.calendar.Calendar(config)

Parameters:
Name Type Description
config Object
Properties
Name Type Description
inputFormat String

Date format saved as value(example: d-m-Y). Default is Y-m-d.

value String | Date

Initial date.

date String | Date

Alias to config.value.

minDate String | Date

Optional minimum selectable date

maxDate String | Date

Optional maximum selectable date

inputFormat String

Internal format, default: 'Y-m-d'

Source:
Fires:
  • ludo.calendar.Calendar#setDate - Arguments Date and ludo.View(the view firing the event)

Extends

Methods


getDate() → {Object}

Returns selected date as Date object

Source:
Returns:

selected date

Type
Object

setMonth(month)

Set current month

Parameters:
Name Type Description
month Number

(1-12)

Source:
Returns:

void


setYear(year)

Set year (4 digits)

Parameters:
Name Type Description
year Number
Source:

val(date) → {*}

Set or get date

Parameters:
Name Type Description
date String | Date
Source:
Returns:
Type
*