mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
43 lines
655 B
JavaScript
43 lines
655 B
JavaScript
define( [
|
|
"lib/common",
|
|
"ui/datepicker",
|
|
"globalize-locales"
|
|
], function( common ) {
|
|
|
|
common.testWidget( "datepicker", {
|
|
defaults: {
|
|
appendTo: null,
|
|
buttons: [],
|
|
classes: {},
|
|
disabled: false,
|
|
dateFormat: { date: "short" },
|
|
eachDay: $.noop,
|
|
labels: {
|
|
"datePickerRole": "date picker",
|
|
"nextText": "Next",
|
|
"prevText": "Prev",
|
|
"weekHeader": "Wk"
|
|
},
|
|
locale: "en",
|
|
max: null,
|
|
min: null,
|
|
numberOfMonths: 1,
|
|
position: {
|
|
my: "left top",
|
|
at: "left bottom"
|
|
},
|
|
show: true,
|
|
showWeek: false,
|
|
hide: true,
|
|
|
|
// callbacks
|
|
beforeOpen: null,
|
|
close: null,
|
|
create: null,
|
|
open: null,
|
|
select: null
|
|
}
|
|
});
|
|
|
|
} );
|