Download the PHP package novadaemon/filament-pretty-json without Composer
On this page you can find all versions of the php package novadaemon/filament-pretty-json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download novadaemon/filament-pretty-json
More information about novadaemon/filament-pretty-json
Files in novadaemon/filament-pretty-json
Package filament-pretty-json
Short Description Read-only field to show pretty json in your filamentphp forms
License MIT
Homepage https://github.com/novadaemon/filament-pretty-json
Informations about the package filament-pretty-json
novadaemon/filament-pretty-json
Read-only field to show pretty json in your filamentphp forms.
Installation
You can install the package via composer:
This package supports Filament 2.x and 3.x.
Usage
Simply use the component as you'd use any other Filament field. It's especially perfect for the resource view page where it blends right in.
The value of the field can be casting to string, json, array, object, AsArrayObject or object that implements Jsonable interface
Allowing the value to be copied to the clipboard
You may make the JSON copyable, such that clicking on the icon that appear in the top of the div when this option is enabled, the JSON value to the clipboard, and optionally specify a custom confirmation message and duration in milliseconds.
Customize
Optionally, you can publish the views using
Also, you can overwrite the css rules in your stylesheets.
Contributing
Contributing is pretty chill and is highly appreciated! Just send a PR and/or create an issue!
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-pretty-json with dependencies
filament/filament Version ^3.0
filament/forms Version ^3.0
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^10.0|^11.0|^12.0