Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 26 days ago
JSON representation
Easily add jquery inputmask to your ActiveAdmin. :nail_care:
- Host: GitHub
- URL: https://github.com/dhyegocalota/formtastic-jquery_inputmask
- Owner: dhyegocalota
- License: mit
- Created: 2017-10-12T00:17:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T04:32:10.000Z (about 7 years ago)
- Last Synced: 2024-10-09T11:23:47.269Z (about 1 month ago)
- Topics: activeadmin, form, inputmask, javascript, js, mask, rails, ruby
- Language: Ruby
- Homepage:
- Size: 569 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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)