Skip to content

davidbilling/ember-cli-time-input

Repository files navigation

ember-cli-time-input

[Short description of the addon.]

Compatibility

  • Ember.js v4.12 or above
  • Ember CLI v4.12 or above
  • Node.js v18 or above

Installation

ember install ember-cli-time-input

Usage

The time-input component use moment "HH:mm" format. (Not yet configurable)

onChangedTime is called when the time has been updated. If an array of dates are submitted the array will update the time on the current date assigned.

The update will occur on the onblur event.

Usage with only one date:

  <TimeInput @currentDate={{this.yourDateTime}} @onChangedTime={{this.timeUpdated}}/>

Usage with array of dates:

  {{#each myDateArray as |time|}}
    <TimeInput @currentDate={{time}} @arrayDates={{this.myDateArray}}/>
  {{/each}}

Usage

Installation

  • git clone this repository
  • npm install

Running

Running Tests

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

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Building

  • ember build

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

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.