Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmedabdel3al/filament-json-preview

integrate the powerful JSONEditor library into filament
https://github.com/ahmedabdel3al/filament-json-preview

json jsoneditor preivew

Last synced: 2 months ago
JSON representation

integrate the powerful JSONEditor library into filament

Awesome Lists containing this project

README

        

# ahmedabdelaal/filament-json-preview

This package seamlessly integrates the powerful JSONEditor library , enabling developers to easily incorporate a robust JSON editor into their Filament projects.
https://github.com/josdejong/jsoneditor

## Installation

![img.png](https://raw.githubusercontent.com/ahmedabdel3al/filament-json-preview/main/images/img.png)

You can install the package via composer:

```bash
composer require ahmedabdelaal/filament-json-preview
```

publish the svg icons
```bash
php artisan vendor:publish --tag=jsoneditor
```
## Usage

```php
public static function infolist(Infolist $infolist): Infolist
{
return $infolist->schema([
JsonPreview::make('logs'),
]);
}
```

enable search in json

```php
JsonPreview::make('logs')->searchable()
```

show NavigationBar in json

```php
JsonPreview::make('logs')->showNavigationBar()
```

## Contributing

Your contributions are welcome and greatly valued! Please feel free to submit a pull request or create an issue.

## Credits

- [Ahmed Abdelaal](https://github.com/ahmedabdel3al)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.


default


Screenshot


search


Screenshot


navigation bar


Screenshot