masoudi / number-plus
Advance number field for Laravel Nova
Installs: 1 336
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^7.3|^8.0
- laravel/nova: >=4.0.0
This package is auto-updated.
Last update: 2023-07-23 17:03:09 UTC
README
Specially Thanks
This package based on vue-number-format and thanks to Coderstm for maintaining it.
Number Plus - A advance number field
Number field with many option for customize number input
install
composer require masoudi/number-plus
How to use
NumberPlus::make('Salary') ->options([ "separator" => ',', "prefix" => '$ ', "suffix" => ' Yearly', "precision" => 2, "masked" => false, ]),
Options
prefix
: A word, letter, or number placed beforevalue
suffix
: A word, letter, or number placed aftervalue
separator
: Character used as the thousands separatordecimal
: Character used to separate the integer part from the fractional part of a numberprecision
: The precision property returns the number of bits of precision that can be represented.minimumFractionDigits
: The minimum number of digits after the decimal separator.prefill
: Set initial value before mount the componentreverseFill
: Fills string from the right side of the maskmasked
: Value will be masked (with contain separation characters)min
: The min attribute specifies the minimum value for an input element.nax
: The max attribute specifies the maximum value for an input element.nullValue
: Value of input element is set to a default when no value present
Hooks
callAfterChanged
Call a URL after exit input focus and you can display request response bottom of field
Example:
NumberPlus::make('Price') ->callAfterChanged("https://domain.com/number-to-words.php", displayResponse: true),