Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 815 Bytes

File metadata and controls

35 lines (27 loc) · 815 Bytes

bootstrap3-datetimepicker

Bootstrap 3 DateTime picker from Eonasdan, https://github.com/Eonasdan/bootstrap-datetimepicker, packaged for Meteor.js

To install

$ meteor add tsega:bootstrap3-datetimepicker

To use

Set up your markup, in the example below a grouped calendar icon with text input (bootstrap3)

<template name="tempName">
...
  <div class="input-group datetimepicker">
    <span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
    <input class="set-due-date form-control" type="text"/>
  </div>
...
</template>

Using jQuery initiate the control as datetime picker after the template has been rendered.

Template.tempName.onRendered(function() {
    this.$('.datetimepicker').datetimepicker();
});