https://github.com/kindlyops/ember-daypicker
🗓 Datepicker component for ember.js.
https://github.com/kindlyops/ember-daypicker
datepicker datepicker-component ember emberjs moment
Last synced: about 2 months ago
JSON representation
🗓 Datepicker component for ember.js.
- Host: GitHub
- URL: https://github.com/kindlyops/ember-daypicker
- Owner: kindlyops
- License: mit
- Created: 2016-03-01T09:31:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T21:06:00.000Z (over 3 years ago)
- Last Synced: 2025-08-24T13:59:44.393Z (10 months ago)
- Topics: datepicker, datepicker-component, ember, emberjs, moment
- Language: JavaScript
- Homepage: http://swastik.github.io/ember-daypicker/
- Size: 28.3 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/ember-daypicker)
[](https://circleci.com/gh/swastik/ember-daypicker)
[](https://emberobserver.com/addons/ember-daypicker)
# ember-daypicker
ember-daypicker is a simple datepicker component for ember.js. It's built using moment.js; there are no
external datepicker libraries. There's basic keyboard support, too.
[Here's an introduction to it (with examples)](http://swastik.github.io/ember-daypicker/).
* Ember.js v2.18 or above
* Ember CLI v2.13 or above
`ember install ember-daypicker`
## Usage
You get a component `en-daypicker-input` that be used as such:
```
{{en-daypicker-input
date=date
on-select=(action 'didSelectDate')
}}
```
It uses moment.js everywhere, so you should pass in a moment object as the `date` attr,
and when you handle the `on-select` action, you should also expect a moment object to
be sent back to you.
Optionally, you can also provide the `format` attribute that will control how the selected
date gets shown in the input field. By default, it is `MMM D` which would be something like
`Mar 10`.
You can disable dates before or after a certain date by passing in the `minDate` or
the `maxDate` attributes.
Last, you can provide the `placeholder` attribute to change the placeholder text that the datepicker
input displays. You can also use the `isFocused` attribute to decide whether the datepicker
is shown by default or not.
## Questions? Bugs?
Feel free to create an issue or send a PR if you find a bug.