2015-04-30 15:38:01 +00:00
|
|
|
define( [
|
|
|
|
"lib/common",
|
2015-08-20 13:48:11 +00:00
|
|
|
"ui/widgets/calendar",
|
2015-04-30 15:38:01 +00:00
|
|
|
"globalize-locales"
|
|
|
|
], function( common ) {
|
|
|
|
|
|
|
|
common.testWidget( "calendar", {
|
2014-06-03 21:18:51 +00:00
|
|
|
defaults: {
|
2014-06-19 22:13:20 +00:00
|
|
|
buttons: [],
|
2016-04-16 14:49:40 +00:00
|
|
|
classes: {
|
|
|
|
"ui-calendar": "ui-corner-all",
|
|
|
|
"ui-calendar-header-first": "ui-corner-left",
|
|
|
|
"ui-calendar-header-last": "ui-corner-right",
|
|
|
|
"ui-calendar-prev": "ui-corner-all",
|
|
|
|
"ui-calendar-next": "ui-corner-all"
|
|
|
|
},
|
2014-06-03 21:18:51 +00:00
|
|
|
disabled: false,
|
2015-07-27 22:42:32 +00:00
|
|
|
dateFormat: { date: "short" },
|
2014-06-03 21:18:51 +00:00
|
|
|
eachDay: $.noop,
|
2016-04-16 15:20:58 +00:00
|
|
|
icons: {
|
|
|
|
prevButton: "ui-icon-circle-triangle-w",
|
|
|
|
nextButton: "ui-icon-circle-triangle-e"
|
|
|
|
},
|
2015-04-30 11:06:56 +00:00
|
|
|
labels: {
|
|
|
|
"datePickerRole": "date picker",
|
|
|
|
"nextText": "Next",
|
|
|
|
"prevText": "Prev",
|
|
|
|
"weekHeader": "Wk"
|
|
|
|
},
|
|
|
|
locale: "en",
|
2014-06-04 17:07:23 +00:00
|
|
|
max: null,
|
|
|
|
min: null,
|
2014-06-03 21:18:51 +00:00
|
|
|
numberOfMonths: 1,
|
|
|
|
showWeek: false,
|
|
|
|
value: null,
|
|
|
|
|
|
|
|
// callbacks
|
2016-05-29 08:57:35 +00:00
|
|
|
change: null,
|
2014-06-03 21:18:51 +00:00
|
|
|
create: null,
|
|
|
|
select: null
|
|
|
|
}
|
2015-10-08 13:06:55 +00:00
|
|
|
} );
|
2015-04-30 15:38:01 +00:00
|
|
|
|
|
|
|
} );
|