Skip to content

hebeworks/ember-time-enabled-pikaday

 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.6%
  • Handlebars 11.9%
  • HTML 10.5%
  • CSS 2.0%