Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 2.98 KB

README.md

File metadata and controls

66 lines (51 loc) · 2.98 KB

ember-time-enabled-pikaday

npm version downloads Build Status Ember Observer Score Dependency Status devDependency Status Code Climate

ember-time-enabled-pikaday is an addon that enables you creating time enabled pikaday components in your Ember.js application. ember-pikaday is used in background.

Installation

cd your-project-directory
ember install ember-time-enabled-pikaday

Usage

You can pass your value as value parameter and handle action as onSelection parameter.

<TimeEnabledPikadayInput @value={{this.timeValue}} @onSelection={{this.doSomethingWithSelectedValue}} />

You can enable/disable time selection using timeEnabled parameter.

<TimeEnabledPikadayInput @timeEnabled={{this.timeEnabled}} />

You can set 24 hour format using use24hour parameter.

<TimeEnabledPikadayInput @use24hour=true />

You can enable/disable selecting minutes using showMinutes parameter.

<TimeEnabledPikadayInput @showMinutes=true />

You can enable/disable selecting seconds using showSeconds parameter.

<TimeEnabledPikadayInput @showSeconds=true />

You can enable/disable selecting weekends using disableWeekends parameter.

<TimeEnabledPikadayInput @disableWeekends=true />

You can set custom time label using timeLabel parameter.

<TimeEnabledPikadayInput @timeLabel='My time: ' />

Checkout live examples at ember-time-enabled-pikaday demo page

License

This project is licensed under the MIT License.