0.1.0 • Published 8 years ago

ember-time-input v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

Ember-time-input Build Status

A component for inputting times. Uses momentjs and performs basic validation.

Usage

Exposes a time-input component. Use moment conventions for defining format:

http://momentjs.com/docs/#/displaying/format/

Action will be called when the time has changed and can be parsed correctly.

If the date cannot be parsed the element is endowed with the class .invalid.

{{time-input value=task.startTime
             format='h:mm a'
             action='timeChanged'
             class='time-edit'}}

Parameters

You can specify on the time-input component.

  • format - the date format as recognised by moment.js
  • action - the action to trigger when when the time is changed, passes the new time as a parameter.
  • input-class - classes to add to the input
  • placeholder - the placeholder text for the input

Contributing

Installation

  • git clone this repository
  • npm install
  • bower 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.1.0

8 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago