Sha256: 009f9b59909038880ea455b31b973058c0a83846956ffda4c45a4c0819533185

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

import FlatpickrController from './flatpickr_controller'

import { i18n } from '../core/i18n'

export default class extends FlatpickrController {
  get options () {
    return {
      ...super.options,
      enableTime: true,
      altFormat: i18n.t('admin.datepicker.formats.datetime', { defaultValue: 'm/d/Y h:i K' })
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.10.1 frontend/js/controllers/datetimepicker_controller.js
trestle-0.10.0 frontend/js/controllers/datetimepicker_controller.js
trestle-0.10.0.pre2 frontend/js/controllers/datetimepicker_controller.js
trestle-0.10.0.pre frontend/js/controllers/datetimepicker_controller.js