Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

activeadmin inputmask mask rails ruby

Last synced: 2 days ago
JSON representation

Easily add jquery inputmask to your ActiveAdmin.

Awesome Lists containing this project

README

        

# ActiveAdmin jQuery Inputmask
Easily add jquery inputmask to your ActiveAdmin.

**For more usage info, please take a look at [active_admin-jquery_inputmask](https://github.com/dhyegofernando/active_admin-jquery_inputmask)**

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

**2. Require javascript dependency**
```javascript
//= require active_admin/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 active_admin/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)