Beispiel #1
0
 _getPickerConfigurationOptions: function(options) {
     _.extend(options, {
         nativeMode: tools.isMobile(),
         dateInputAttrs: {
             'class': 'datepicker-input ' + this.inputClass,
             'placeholder': __('oro.form.choose_date')
         },
         datePickerOptions: this.dateWidgetOptions,
         dropdownTemplate: this._getTemplate(this.dropdownTemplateSelector),
         backendFormat: datetimeFormatter.getDateFormat(),
         dayFormats: this.dayFormats.slice()
     });
     return options;
 },
 getDateFormat: function() {
     return this.nativeMode ? this.nativeDateFormat : datetimeFormatter.getDateFormat();
 }