Skip to content

Rxbsxn/ember-cleave

Repository files navigation

ember-cleave

The addon is a wrapper on Cleave.js package made with Ember.js

Preview

alt text

Installation

ember install ember-cleave

Usage

Define a options object in your component:

// component.js
dateOptions: computed(function() {
  return {
    date: true,
    datePattern: ['Y', 'm', 'd']
  }
}),

Then in your template:

<EmberCleave
  @options={{dateOptions}}
  @placeholder="Custom placeholder"
  @value={{value}}
  @onChange={{action (mut value)}}
/>

Check documentation of Cleave.js to see more usage options

License

This project is licensed under the MIT License.

About

Cleave.js wrapper made with Ember.js

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •