Skip to content

jwhoami/filament-jsoneditor

 
 

Repository files navigation

JSON Editor form's input for the great Filament package

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

If you need to have a JSON Editor field within your form. You have it !

image

Installation

You can install the package via composer:

composer require invaders-xx/filament-jsoneditor
php artisan vendor:publish --tag=filament-jsoneditor-img

This command will publish the jsoneditor button's img

Usage

[
    \InvadersXX\FilamentJsoneditor\Forms\JSONEditor::make('editor');
]

Options

[
    \InvadersXX\FilamentJsoneditor\Forms\JSONEditor::make('editor')
        ->height(500) // Set height to 500px, default is 300
        ->modes(['code', 'form', 'text', 'tree', 'view', 'preview']); // default is ['code', 'form', 'text', 'tree', 'view', 'preview']
]

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

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 68.5%
  • Blade 26.5%
  • JavaScript 5.0%