Giter VIP home page Giter VIP logo

nova-advanced-number-field's Introduction

An advanced number field for Laravel Nova

Latest Version on Packagist Tests Code styling MIT License Total Downloads

A Laravel Nova field which adds additional functionality to the default Number field by using PHP's number_format() function.

Screenshot of the advanced number field

Installation

You can install this package in a Laravel app that uses Nova via composer:

composer require simplesquid/nova-advanced-number-field

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.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Package skeleton based on spatie/skeleton-php.

About us

SimpleSquid is a small web development and design company based in Valkenburg, Netherlands.

License

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

nova-advanced-number-field's People

Contributors

mdpoulter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nova-advanced-number-field's Issues

Nova v3: simplesquid/nova-advanced-number-field v1.1.1 requires laravel/nova ^2.1 -> satisfiable by laravel/nova[2.x-dev]

Problem 1
- simplesquid/nova-advanced-number-field v1.1.1 requires laravel/nova ^2.1 -> satisfiable by laravel/nova[2.x-dev].
- simplesquid/nova-advanced-number-field v1.1.0 requires laravel/nova ^2.0 -> satisfiable by laravel/nova[2.x-dev].
- simplesquid/nova-advanced-number-field v1.1.1 requires laravel/nova ^2.1 -> satisfiable by laravel/nova[2.x-dev].
- Can only install one of: laravel/nova[3.x-dev, 2.x-dev].
- Installation request for laravel/nova ~3.0 -> satisfiable by laravel/nova[3.x-dev].
- Installation request for simplesquid/nova-advanced-number-field ^1.1 -> satisfiable by simplesquid/nova-advanced-number-field[v1.1.0, v1.1.1].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.