-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dynamic field reactivity macro, Jetstream belongsToMany team checklis…
…t, PrettyPrint view field.
- Loading branch information
1 parent
0abf0e4
commit 2d03718
Showing
5 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<x-dynamic-component | ||
:component="$getFieldWrapperView()" | ||
:field="$field" | ||
> | ||
<div class="border dark:border-gray-600 rounded bg-white dark:bg-gray-800 p-6 w-full"> | ||
<pre class="w-full overflow-x-auto">{!! print_r(data_get($this, $getStatePath()), true) !!}</pre> | ||
{{-- <pre><code>{!! json_encode(data_get($this, $getStatePath()), JSON_PRETTY_PRINT) !!}</code>}</pre> --}} | ||
</div> | ||
</x-dynamic-component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace TantHammar\FilamentExtras\Forms; | ||
|
||
use Filament\Forms\Components\Field; | ||
|
||
/** | ||
* Consider using JSONEditor field instead.<br> | ||
* <br> | ||
* OBSERVE that this field does not update component state.<br> | ||
* <br> | ||
* Example usage: <br> | ||
* PrettyPrint::make('account')<br> | ||
* ->ignored()<br> | ||
* ->hiddenOn('create')<br> | ||
* ->columnSpan('full'),<br> | ||
*/ | ||
class PrettyPrintView extends Field | ||
{ | ||
protected string $view = 'filament-extras::components.pretty-print'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters