Installing
This guide still needs a lot of work
Minimal Requirements
- jQuery
- Moment.js
- Locales: Moment's locale files are here
Installation Guides
CDN
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.0-alpha14/js/tempusdominus-bootstrap-4.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.0-alpha14/css/tempusdominus-bootstrap-4.min.css" />
</head>
Package Managers
Rails
Rails 5.1 Support - Bootstrap 4 Datetime Picker Rails
- Add
gem 'bootstrap4-datetime-picker-rails'
to yourGemfile
- Execute
bundle
- Add
//= require tempusdominus-bootstrap-4.js
to yourapplication.js
- Add
@import "tempusdominus-bootstrap-4.css"
to yourapplication.scss
Django
Python package for Django: Django Tempus Dominus
- Install via pip:
pip install django-tempus-dominus
- Widgets are provided for Date, DateTime, and Time.
- Full examples are available with Django Forms, Widgets, and Templates.
Angular Wrapper
Follow instructions at ngx-tempusdominus-bootstrap
Meteor.js
Need new wrapper for this version.
Manual
<script type="text/javascript" src="/path/to/jquery.js"></script>
<script type="text/javascript" src="/path/to/moment.js"></script>
<script type="text/javascript" src="/path/to/tempusdominus-bootstrap-4.min.js"></script>
Knockout
Need new wrapper for this version.