Using Meteor autoform-bs-datetimepicker for time only

There is a Fairing Meteor for the datetimepicker boot file . In bootstrap docs you can only specify time (# datetimepicker3). I want to do it in Meteor. I tried using

{{> afQuickField name="departureTime" dateTimePickerOptions=timePickerOptions}} timePickerOptions : function() { return { format : 'LT' } }, 

however, it still shows the calendar (although it allows you to choose the time). Is something missing here?

+7
javascript twitter-bootstrap meteor meteor-autoform
source share
1 answer

try loading it with your options to make sure they are loaded before the template starts rendering.

 {{#with timePickerOptions}} {{> afQuickField name="departureTime" dateTimePickerOptions=this}} {{/with}} 
+2
source share

All Articles