Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ahmedabdel3al/filament-json-preview
- Owner: ahmedabdel3al
- License: mit
- Created: 2024-05-30T08:48:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-03T21:45:11.000Z (7 months ago)
- Last Synced: 2024-10-11T15:48:03.782Z (3 months ago)
- Topics: json, jsoneditor, preivew
- Language: PHP
- Homepage: https://github.com/ahmedabdel3al/filament-json-preview
- Size: 718 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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
search
navigation bar