ember-cli-time-input v0.12.0
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 repositorynpm install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember 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.
4 months ago
4 months ago
8 months ago
10 months ago
10 months ago
10 months ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago