0.3.0 • Published 6 years ago

ember-time-field v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ember-time-field

Time field input, like Chrome's, with keyboard navigation within sections.

Installation

ember install ember-time-field

Usage

{{time-field on-change=(action "timeChanged") value=time hour12=true}}
  • value is a Time
  • hour12 (default false) whether or not to display in 12 hour format with am/pm field.
  • on-change action is triggered with a Time whenever the input value changes.

Time is simply a POJO with hours and minutes properties and is always 24 hours.

Keyboard / Mouse Integration

  • Clicking on a segment selects that segment (hours/minutes/period)
  • Up/down increment/decrement the selected segment
  • Left/right moves between segments
  • Typing moves along the segments - eg typing "945p" will enter "09:45 pm"

TODO pre 1.0

  • Tests
  • Ensure 12 hour times work correctly

Installation

  • git clone this repository
  • npm install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

0.3.0

6 years ago

0.2.0

6 years ago

0.1.5

7 years ago

0.1.4

8 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago