Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Tiny and Powerful Library for limit an entry (text box,input) as number
,string
or more...
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
This package available in the npmjs repository (filterinput), so you can easily install it with:
npm i filterinput
currently , only work on <input>
tag.
Argument Name | Goal |
---|---|
data-filter | Set type of Filter for a tag |
data-filter-lang | Restrict allowed languages (soon) |
You can discuss or send a request at here.
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.
npm run dev
npm run build # build the production files
FilterInput is licensed under the GNU General Public License.