Using a Meteor autoform-bs-datetimepicker for time only

There's a Meteor wrapper for the bootstrap datetimepicker. In the bootstrap docs, you can specify selecting time only (#datetimepicker3). I want to do this in Meteor. I've tried using

  {{> afQuickField name="departureTime" dateTimePickerOptions=timePickerOptions}}

  timePickerOptions : function() {
    return {
      format : 'LT'

however this still shows the calendar (although it does allow you to select the time). Is there something I'm missing here?



try to load it with your options, to be sure, that they are loaded before the template starts rendering..

{{#with timePickerOptions}}
  {{> afQuickField name="departureTime" dateTimePickerOptions=this}}


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.