Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhyegocalota/formtastic-jquery_inputmask

Easily add jquery inputmask to your ActiveAdmin.  :nail_care:
https://github.com/dhyegocalota/formtastic-jquery_inputmask

activeadmin form inputmask javascript js mask rails ruby

Last synced: about 1 month ago
JSON representation

Easily add jquery inputmask to your ActiveAdmin.  :nail_care:

Awesome Lists containing this project

README

        

# Formtastic jQuery Inputmask
Easily add jquery inputmask to your Formtastic (or ActiveAdmin).

## Installation
**1. Include to your Gemfile**
```ruby
gem 'formtastic-jquery_inputmask'
```

**2. Require javascript dependency**
```javascript
//= require formtastic/inputmask
```

**3. Load locale or other [inputmask](https://github.com/dhyegofernando/formtastic-jquery_inputmask/tree/master/vendor/inputmask/dist) file as you want**
```javascript
//= require formtastic/inputmask/locales/pt-BR
//= require inputmask/phone-codes/phone-us
```

*p.s. it auto adds jquery as a dependency in your project*

## Usage
```ruby
f.input :created_at, mask: 'datetime'
f.input :date, mask: { alias: 'datetime', inputformat: 'dd/mm/yyyy' }
```

## Maintainer
[Dhyego Fernando](https://github.com/dhyegofernando)