The add-on provides you a date input component based on amazing bootstrap-datepicker library. It supports popup and inline mode, and can be used in Ember CLI applications.
If you are using Ember CLI 0.1.5 and higher, just run within your project directory:
ember install:addon ember-cli-bootstrap-datepicker
When your Ember CLI version is below 0.1.5, please run within your project directory:
npm install --save-dev ember-cli-bootstrap-datepicker
ember generate bootstrap-datepicker
Basic example:
Use separate component for inline mode:
The component supports many options of the bootstrap-datepicker library. Let me show you how to use them ✨
Type: Boolean
Default: false
Type: Boolean
Default: false
Type: Boolean
Default: false
Type: Array
or String
Default: ""
or []
Type: Date
or String
Default: Infinity
(end of time)
Type: Boolean
Default: true
Type: String
Default: 'mm/dd/yyyy'
Type: Boolean
Default: true
Type: String
Default: 'en'
When you need another language, you should import a locale file using your Brocfile.js. Just import bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.<LANGUAGE_CODE>.js
, e.g.:
// Brocfile.js
app.import('bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js');
Type: Number
or String
Default: 0
or 'days'
Type: String
Default: 'auto'
Type: Date
or String
Default: -Infinity
(beginning of time)
Type: Number
or String
Default: 0
or 'month'
Type: Boolean
Default: false
Type: Boolean
Default: false
Type: Number
Default: 0
(Sunday)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
The add-on is based on bootstrap-datepicker.