Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 366
ahota Avatar asked Nov 06 '15 23:11

ahota


1 Answers

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}}
{{/with}}
like image 109
webdeb Avatar answered Oct 09 '22 05:10

webdeb