2015-04-30 15:38:01 +00:00
|
|
|
define( [
|
|
|
|
"lib/common",
|
2015-08-20 13:48:11 +00:00
|
|
|
"ui/widgets/datepicker",
|
2015-04-30 15:38:01 +00:00
|
|
|
"globalize-locales"
|
|
|
|
], function( common ) {
|
|
|
|
|
|
|
|
common.testWidget( "datepicker", {
|
2013-01-02 22:37:26 +00:00
|
|
|
defaults: {
|
2014-06-03 21:18:51 +00:00
|
|
|
appendTo: null,
|
2014-06-19 22:13:20 +00:00
|
|
|
buttons: [],
|
2016-04-16 16:47:43 +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-28 21:10:16 +00:00
|
|
|
dateFormat: { date: "short" },
|
2014-06-03 21:18:51 +00:00
|
|
|
eachDay: $.noop,
|
2016-04-16 16:47:43 +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,
|
|
|
|
position: {
|
|
|
|
my: "left top",
|
|
|
|
at: "left bottom"
|
|
|
|
},
|
|
|
|
show: true,
|
|
|
|
showWeek: false,
|
|
|
|
hide: true,
|
|
|
|
|
|
|
|
// callbacks
|
|
|
|
beforeOpen: null,
|
2016-05-29 08:57:35 +00:00
|
|
|
change: null,
|
2014-06-03 21:18:51 +00:00
|
|
|
close: null,
|
|
|
|
create: null,
|
|
|
|
open: null,
|
|
|
|
select: null
|
2013-01-02 22:37:26 +00:00
|
|
|
}
|
2015-10-08 13:06:55 +00:00
|
|
|
} );
|
2015-04-30 15:38:01 +00:00
|
|
|
|
|
|
|
} );
|