ember-cli-time-input

0.12.0 • Public • Published

ember-cli-time-input

Ember addon for time edit on date or array of dates in Ember.

Compatibility

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

After version 0.2.0 set your action to onChangedTime.

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}}/>

For versions before 0.2.0:

  {{time-input currentDate=yourDateTime action='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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.12.0
    0
    • latest

Version History

Package Sidebar

Install

npm i ember-cli-time-input

Weekly Downloads

42

Version

0.12.0

License

MIT

Unpacked Size

6.98 kB

Total Files

8

Last publish

Collaborators

  • davidbilling