Native and polyfilled date, time, and date-time inputs wrapped in an ember addon
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addon
app
config
tests
vendor
.bowerrc
.editorconfig
.ember-cli
.gitignore
.jshintrc
.npmignore
.travis.yml
.watchmanconfig
LICENSE.md
README.md
bower.json
ember-cli-build.js
index.js
package.json
testem.js

README.md

Ember-datetime

date, time, month, year, and datetime-local <input>s, polyfilled, and wrapped in an ember addon.

Installation

  • git clone this repository
  • npm install
  • bower install

Basic Usage

{{date-input value=model.field inputId=controlID}}

(Where model.field corresponds to the bound field, and inputId corresponds to the for attribute of the <label>)

datetime-local <input>

datetime-local allows for a specific time to be selected in addition to a date:

{{date-input value=model.field local=true}}

Month Input

{{date-input value=model.field range="month"}}

Week Input

{{date-input value=model.field range="week"}}

Time Input

{{time-input value=model.field}

Custom Ranges

Not yet implemented, as the goal of this project is to keep native and polyfilled functionalities as close as possible.

Support

date and time inputs currently have 70.14% global support.

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.