mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
ea6c475da4
Fix missing classes options defaults in tests.
53 lines
982 B
JavaScript
53 lines
982 B
JavaScript
define( [
|
|
"lib/common",
|
|
"ui/widgets/datepicker",
|
|
"globalize-locales"
|
|
], function( common ) {
|
|
|
|
common.testWidget( "datepicker", {
|
|
defaults: {
|
|
appendTo: null,
|
|
buttons: [],
|
|
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"
|
|
},
|
|
disabled: false,
|
|
dateFormat: { date: "short" },
|
|
eachDay: $.noop,
|
|
icons: {
|
|
prevButton: "ui-icon-circle-triangle-w",
|
|
nextButton: "ui-icon-circle-triangle-e"
|
|
},
|
|
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
|
|
}
|
|
} );
|
|
|
|
} );
|