- Notifications
You must be signed in to change notification settings - Fork3
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
License
BaseMax/FilterInputJs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Tiny and Powerful Library for limit an entry (text box,input) asnumber
,string
or more...
Add the following line to your.html
file:
<scriptsrc="https://cdn.jsdelivr.net/gh/BaseMax/FilterInputJs@master/dist/index.min.js"></script>
or download theminified file
or use:https://cdn.jsdelivr.net/npm/filterinput/src/index.min.js
This package available in thenpmjs repository (filterinput), so you can easily install it with:
npm i filterinput
- Fast
- Compact
- No dependencies
- Easy using Filters
currently , only work on<input>
tag.
- input
- textarea
- select
Argument Name | Goal |
---|---|
data-filter | Set type of Filter for a tag |
data-filter-lang | Restrict allowed languages (soon) |
- 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)
- english
- persian
- arabic
- all
You can discuss or send a request athere.
To view the full details, run the example.html file.
Decimal :<input data-filter="decimal" value="5.64">
Integer :<input data-filter="integer" value="91">
soon will be complete.
You can choose multiple languages.Separate them with,
.
soon will be complete.
npm run dev
npm run build# build the production files
FilterInput is licensed under theGNU General Public License.
About
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.