Download the PHP package jeffersonsimaogoncalves/nova-advanced-number-field without Composer
On this page you can find all versions of the php package jeffersonsimaogoncalves/nova-advanced-number-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersonsimaogoncalves/nova-advanced-number-field
More information about jeffersonsimaogoncalves/nova-advanced-number-field
Files in jeffersonsimaogoncalves/nova-advanced-number-field
Package nova-advanced-number-field
Short Description A Laravel Nova field which adds additional functionality to the default Number field.
License MIT
Homepage https://github.com/simplesquid/nova-advanced-number-field
Informations about the package nova-advanced-number-field
An advanced number field for Laravel Nova
A Laravel Nova field which adds additional functionality to the default Number field by using PHP's number_format()
function.
Installation
You can install this package in a Laravel app that uses Nova via composer:
Usage
The AdvancedNumber
field provides an additional 5 methods to the default Number
field, namely:
->prefix('$')
: Sets the prefix to be used when displaying the number.->thousandsSeparator(' ')
: Set the thousands separator symbol to be used when displaying the number.->decimalPoint('.')
: Sets the decimal point symbol to be used when displaying the number.->decimals(3)
: Sets the number of decimal points to be used as well as the step value.->suffix('%')
: Sets the suffix to be used when displaying the number.
You can use the field in your Nova resource like so:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Matthew Poulter
- All Contributors
Package skeleton based on spatie/skeleton-php.
About us
SimpleSquid is a small web development and design company based in Cape Town, South Africa.
License
The MIT License (MIT). Please see License File for more information.