rewrite the defaults with $.fn.calendar.defaults.
Usage
Copy Code code as follows:
<div id= "CC" style= "width:180px;height:180px;" ></div>
Copy Code code as follows:
$ (' #cc '). Calendar ({
width:600,
height:600,
Current:new Date ()
});
Characteristics
name |
type |
description |
default |
width |
number |
the width of the calendar component. |
180 |
height |
number |
the height of the calendar component. |
180 |
fit |
boolean |
true sets the size of the calendar to fit its parent container. /span> |
false |
border |
boolean |
define whether borders are displayed 。 |
true |
weeks |
array |
displays the calendar for the week. |
[', ' M ', ' t ', ' W ', ' t ', ' F ', ' S ', |
months |
array |
displays a list of the months. |
[', ' Feb ', ' Mar ', ' Apr ', ' may ', ' June ', ' may ', ' Aug ', ' Sep ', ' Oct ', ' Nov ', ' Dec ' ] |
year |
number |
calendar year. |
current year (4 bit" |
month |
number |
calendar month. |
current month (from 1 start) |
Current |
Date |
Date of the calendar. |
Current date |
Event
name |
parameters |
description |
Onselect |
Date |
Triggered when the user selects a date. |
Method
name |
parameters |
description |
options |
none |
back to options object. |
resize |
none |
adjust the size of the calendar. |
MoveTo |
Date |
Move the calendar to a specified date. |