Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dhyegocalota/active_admin-jquery_inputmask
- Owner: dhyegocalota
- License: mit
- Created: 2017-10-13T20:58:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T04:33:42.000Z (about 7 years ago)
- Last Synced: 2024-03-19T02:56:05.713Z (8 months ago)
- Topics: activeadmin, inputmask, mask, rails, ruby
- Language: Ruby
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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)