All Projects → BaseMax → FilterInputJs

BaseMax / FilterInputJs

Licence: GPL-3.0 license
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to FilterInputJs

FixLanguageTypeJs
Tiny Library for fix problem of language selection in type text.
Stars: ✭ 15 (-59.46%)
Mutual labels:  js-library, javascript-library, js-libs, javascript-libraries, javascript-lib, purejs
ChangeNumbersJs
Tiny Library for change number from a language in other language.
Stars: ✭ 14 (-62.16%)
Mutual labels:  js-library, javascript-library, js-libs, javascript-lib, purejs
ATGValidator
iOS validation framework with form validation support
Stars: ✭ 51 (+37.84%)
Mutual labels:  validator, form-validation, validation-library, form-validator
Validator.js
String validation
Stars: ✭ 18,842 (+50824.32%)
Mutual labels:  input, validator, validations, validate
Vee Validate
✅ Form Validation for Vue.js
Stars: ✭ 8,820 (+23737.84%)
Mutual labels:  validator, validations, validate, validation-library
python-valid8
Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.
Stars: ✭ 24 (-35.14%)
Mutual labels:  input, validator, validate, valid
Approvejs
A simple JavaScript validation library that doesn't interfere
Stars: ✭ 336 (+808.11%)
Mutual labels:  validator, form-validation, javascript-library, validations
validate
An extension to the popular library validate.js that adds some useful custom validations out of the box. Also, a hub for all custom validations, that we have created, so you can easily add them to your own project.
Stars: ✭ 31 (-16.22%)
Mutual labels:  form-validation, javascript-library, validations
vayder
Easy and concise validations for Express routes
Stars: ✭ 26 (-29.73%)
Mutual labels:  validator, validate, validation-library
Semantic Ui React
The official Semantic-UI-React integration
Stars: ✭ 12,561 (+33848.65%)
Mutual labels:  js-library, javascript-library, javascript-libraries
awesome-libraries-resources
Awesome js and css libraries for web development.
Stars: ✭ 32 (-13.51%)
Mutual labels:  js-library, javascript-library, js-libs
Nice Validator
Simple, smart and pleasant validation solution.
Stars: ✭ 587 (+1486.49%)
Mutual labels:  validator, form-validation, validate
Fast Xml Parser
Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
Stars: ✭ 1,021 (+2659.46%)
Mutual labels:  validator, validate
Formhelper
ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation)
Stars: ✭ 155 (+318.92%)
Mutual labels:  validator, form-validation
Fastest Validator
⚡️ The fastest JS validator library for NodeJS
Stars: ✭ 923 (+2394.59%)
Mutual labels:  validator, validate
Validot
Validot is a performance-first, compact library for advanced model validation. Using a simple declarative fluent interface, it efficiently handles classes, structs, nested members, collections, nullables, plus any relation or combination of them. It also supports translations, custom logic extensions with tests, and DI containers.
Stars: ✭ 198 (+435.14%)
Mutual labels:  validator, validation-library
SheenValidator
Android library to make form validation easier
Stars: ✭ 29 (-21.62%)
Mutual labels:  input, validator
Validator.js
⁉️轻量级的 JavaScript 表单验证,字符串验证。没有依赖,支持 UMD ,~3kb。
Stars: ✭ 486 (+1213.51%)
Mutual labels:  validator, validate
passport
A Kotlin-based Android view validation library with a simple DSL.
Stars: ✭ 31 (-16.22%)
Mutual labels:  input, input-validation
read input
A simple CLI tool that asks for user input until the data inputted is valid.
Stars: ✭ 13 (-64.86%)
Mutual labels:  input, input-validation

Filter Input

FilterInputJs

FilterInput

Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...

FilterInput.min.js File Size FilterInput.min.js Validation Code

Getting started

Add the following line to your .html file:

<script src="https://cdn.jsdelivr.net/gh/BaseMax/FilterInputJs@master/dist/index.min.js"></script>

or download the minified file

or use: https://cdn.jsdelivr.net/npm/filterinput/src/index.min.js

Install

This package available in the npmjs repository (filterinput), so you can easily install it with:

npm i filterinput

Features

  • Fast
  • Compact
  • No dependencies
  • Easy using Filters

Supported Tags

currently , only work on <input> tag.

  • input
  • textarea
  • select

Arguments

Argument Name Goal
data-filter Set type of Filter for a tag
data-filter-lang Restrict allowed languages (soon)

Data Filters

  • Decimal
  • !Decimal (a decimal , not empty)
  • Integer
  • !Integer (a integer , not empty)
  • String (any character , no number)
  • !String (a string , not empty)
  • Alphabet (english,farsi:persian,arabic,china,...)
  • !Alphabet (english,farsi:persian,arabic,china,...) not empty!
  • Alphabet0 (may be have number characters)
  • !Alphabet0 (may be have number characters) not empty!
  • Any (any char or empty)
  • !Any (any char , not empty)

Data Filter Languages

  • english
  • persian
  • arabic
  • all

You can discuss or send a request at here.

Samples

To view the full details, run the example .html file.

data-filter

Decimal :
<input data-filter="decimal" value="5.64">
Integer :
<input data-filter="integer" value="91">

data-filter-lang

soon will be complete.

You can choose multiple languages. Separate them with ,.

onclick

soon will be complete.

Development

npm run dev
npm run build # build the production files

License

FilterInput is licensed under the GNU General Public License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].