Skip to content

tsega/meteor-bootstrap3-datetimepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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();
});