Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147145 | Sep 2,2019 09:16 AM UTC | Sep 3,2019 11:32 AM UTC | JavaScript - EJ 2 | 1 |
![]() |
Tags: General |
let datepickerObject: DatePicker = new DatePicker({
placeholder: 'Enter a Date',
created: onCreate
});
function onCreate() {
(DatePicker as any).prototype.getCultureValues = function () {
var culShortNames = [];
var cldrObj;
if (this.locale === 'en' || this.locale === 'en-US') {
cldrObj = (getValue('days.stand-alone.abbreviated', getDefaultDateObject())); // To show the day header format as "Sun", "Mon" etc.
}
else {
cldrObj = (this.getCultureObjects(cldrData, '' + this.locale));
}
for (var _i = 0, _a = Object.keys(cldrObj); _i < _a.length; _i++) {
var obj = _a[_i];
culShortNames.push(getValue(obj, cldrObj));
}
return culShortNames;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.