No commit activity in last 3 years
No release in over 3 years
A simple filter input for active admin with checking at client if input match predefined regex.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 12

Runtime

 Project Readme

Ativeadmin Regex Filter Input

Description

A simple filter input for active admin with checking at client if input match predefined regex.

Demo Gif

Dependency

  • activeadmin 1.0.0 pre

Installation

Add following lines to the Gemfile:

gem 'activeadmin-regex-input', '~> 0.1'

Then execute bundle to install to your activeadmin project.

Usage

In the index section of activeadmin controller:

filter :sample_regex,
         as: :regex,
         regex: '/d+',
         example: '123'

The regex option is the string representation of the regex. This must compatible with javascript default regex engine. Currently the server side validation isn't included.

Thanks

Thank sandywalker for beautiful jquery popover library webui-popover.