Download the PHP package mkocansey/bladewind-input without Composer
On this page you can find all versions of the php package mkocansey/bladewind-input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mkocansey/bladewind-input
More information about mkocansey/bladewind-input
Files in mkocansey/bladewind-input
Package bladewind-input
Short Description BladewindUI — Input field component
License MIT
Informations about the package bladewind-input
Input
BladewindUI — Input field component.
Installation
Or install the full library:
Input masking
The input field supports masking, modelled on the Alpine.js mask plugin.
Use the wildcards 9 (digit), a (letter) and * (alphanumeric) in a template — every other character is a
literal that is inserted automatically as the user types.
Dynamic masks change as the user types. A creditCard mask is built in (detects Amex / Diners / Visa-style
cards) and needs no JavaScript:
For your own dynamic masks, point dynamicMask at a global JS function that returns a template for the current
value. A global of the same name as a built-in takes precedence, so you can override creditCard too:
Money inputs add thousands separators and fix the decimal places. Customise the separators and precision:
| Attribute | Default | Description |
|---|---|---|
mask |
'' |
Static mask template using 9, a, * wildcards. |
dynamicMask |
null |
Name of a JS function (input) => template for masks that change as you type. |
money |
false |
Format the field as a money input. |
moneyDecimalSeparator |
. |
Decimal separator used when money="true". |
moneyThousandsSeparator |
, |
Thousands separator used when money="true". |
moneyPrecision |
2 |
Number of decimal places allowed when money="true". 0 disables decimals. |
Masking forces the field to
type="text"so formatted values (separators, letters) are preserved.
Documentation
Full documentation, live demos, and all available attributes are at bladewindui.com.
License
MIT — see the LICENSE file.
All versions of bladewind-input with dependencies
mkocansey/bladewind-core Version ^4.2.1
mkocansey/bladewind-icon Version ^4.2.1
mkocansey/bladewind-script Version ^4.2.1