diff --git a/Gruntfile.js b/Gruntfile.js index 3dba46987..6f5000c6f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -28,6 +28,7 @@ var "core", "accordion", "autocomplete", + "calendar", "button", "datepicker", "dialog", diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index bcbd764f8..957153777 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -13,6 +13,7 @@ var versions = { "Accordion": "accordion/accordion.html", "Autocomplete": "autocomplete/autocomplete.html", "Button": "button/button.html", + "Calendar": "calendar/calendar.html", "Core": "core/core.html", "Datepicker": "datepicker/datepicker.html", "Dialog": "dialog/dialog.html", diff --git a/demos/datepicker/buttonbar.html b/demos/calendar/buttonbar.html similarity index 84% rename from demos/datepicker/buttonbar.html rename to demos/calendar/buttonbar.html index 446bc9fe4..498fe1041 100644 --- a/demos/datepicker/buttonbar.html +++ b/demos/calendar/buttonbar.html @@ -2,7 +2,7 @@
-Display the datepicker embedded in the page instead of in an overlay. Simply call .datepicker() on a div instead of an input.
+The calendar is a widget for selecting a date using a visual calendar representation.
Localize the calendar calendar language and format (English / Western formatting is the default). The calendar includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.
+Date:
+Restrict the range of selectable dates with the minDate
and maxDate
options. Set the beginning and end dates as actual dates (new Date(2009, 1 - 1, 26)), as a numeric offset from today (-20), or as a string of periods and units ('+1M +10D'). For the last, use 'D' for days, 'W' for weeks, 'M' for months, or 'Y' for years.
Set the numberOfMonths
option to an integer of 2 or more to show multiple months in a single calendar.
Date:
- -Populate an alternate field with its own date format whenever a date is selected using the altField
and altFormat
options. This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.
Select the date range to search for.
-diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 61aa7c9a2..701e5c36b 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -11,6 +11,7 @@ + diff --git a/demos/index.html b/demos/index.html index f37874a44..c4a0fdf95 100644 --- a/demos/index.html +++ b/demos/index.html @@ -11,6 +11,7 @@
+
diff --git a/tests/unit/all.html b/tests/unit/all.html index 043304f76..fc22e0e99 100644 --- a/tests/unit/all.html +++ b/tests/unit/all.html @@ -20,6 +20,7 @@ "autocomplete/autocomplete.html", "button/button.html", "core/core.html", + "calendar/calendar.html", "datepicker/datepicker.html", "dialog/dialog.html", "draggable/draggable.html", diff --git a/tests/unit/calendar/all.html b/tests/unit/calendar/all.html new file mode 100644 index 000000000..5b22b0470 --- /dev/null +++ b/tests/unit/calendar/all.html @@ -0,0 +1,26 @@ + + +
+ +
+ + + + + + + + + + + +
+