Skip to content

Laravel Nova 4 , number field with many options to format output/input

License

Notifications You must be signed in to change notification settings

operativeit/nova-number-plus

Repository files navigation

Laravel Nova 4 Number

This Nova 4 field has lot of options to format number

Latest Version on Packagist Total Downloads GitHub forks GitHub issues License

Installation

composer require eom-plus/nova-number-plus

Usage

In your nova resource make the field EomPlus\NovaSignature\Signature. This field fits perfectly with a TEXT column as it store data in base64 format and can be used both for resources and actions.

use EomPlus\NovaNumberPlus\NumberPlus;

// ...

public function fields()
{
    return [
        // ...
        NumberPlus::make('Amount'),
        // ...
    ];
}

Configuration

  • prefix: A word, letter, or number placed before value
  • suffix: A word, letter, or number placed after value
  • separator: Character used as the thousands separator
  • decimal: Character used to separate the integer part from the fractional part of a number
  • precision: 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 component
  • reverseFill: Fills string from the right side of the mask
  • masked: 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

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

Other Packages You Might Like

Take a look to our Github repositories as we have a lot of forked nova components with fixes that are still not merge into main owner branch.

License

The MIT License (MIT). Please see License File for more information.

About

Laravel Nova 4 , number field with many options to format output/input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published