Hi, I have this code that uses basic and jQuery to copy to display - copy and select, but I need the same for material design, since it copies out of order in material design
initDatePicker : function(JQuery)
{
if (this.datePickerInitialized) return;
this.datePickerInitialized = true;
var TC = TEXT.cust;
// Basic and jQuery DatePicker initialization
JQuery.datepicker.setDefaults( {
closeText: TC("Close"),
prevText : TC("Previous"),
nextText : TC("Next"),
currentText: TC("Current"),
monthNames: [ TC("January"), TC("February"), TC("March"), TC("April"), TC("May"), TC("June"), TC("July"), TC("August"), TC("September"), TC("October"), TC("November"), TC("December") ],
monthNamesShort: [ TC("Jan"),TC("Feb"),TC("Mar"),TC("Apr"),TC("May"),TC("Jun"),TC("Jul"),TC("Aug"),TC("Sep"),TC("Oct"),TC("Nov"),TC("Dec") ],
dayNames: [TC("Sunday"), TC("Monday"), TC("Tuesday"), TC("Wednesday"), TC("Thursday"), TC("Friday"), TC("Saturday")],
dayNamesShort: [TC("Sun"), TC("Mon"), TC("Tue"), TC("Wed"), TC("Thu"), TC("Fri"), TC("Sat")],
dayNamesMin: [TC("Su"), TC("Mo"), TC("Tu"), TC("We"), TC("Th"), TC("Fr"), TC("Sa")],
dateFormat: "dd/mm/yy", firstDay: 1,
isRTL: false } );
// md-datepicker initialization
JQuery.mdDatepicker.setDefaults( {
showOn: "focus",
defaultDate: null,
gotoCurrent: false, // True if today link goes back to current selection instead
changeMonth: false,
changeYear: false,
shortYearCutoff: "+30", // Short year values < this are in the current century,
minDate: null,
maxDate: null,
beforeShow: null,
onSelect: null,
constrainInput: true,
showButtonPanel: false,
orientation: "landscape", // else "portrait"
yearRange: "c-10:c+10" } );
}, /* <--- Note the comma */
copy from browser in axes
Moderator: jeanmichel