Sha256: 4af8d67d3bcfa1d3397004f0994bdbe3623723e2be318868723e092bfc3caf35

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

import FlatpickrController from './flatpickr_controller'

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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