@php use Filament\Support\Facades\FilamentView; $fieldWrapperView = $getFieldWrapperView(); $extraInputAttributeBag = $getExtraAttributeBag(); $key = $getKey(); $statePath = $getStatePath(); @endphp @if ($isDisabled())
{!! str($getState())->sanitizeHtml()->markdown($getCommonMarkOptions(), $getCommonMarkExtensions()) !!}
@else
{ $wire.upload(`componentFileAttachments.{{ $key }}`, file, () => { $wire .callSchemaComponentMethod( '{{ $key }}', 'saveUploadedFileAttachmentAndGetUrl', ) .then((url) => { if (! url) { return onError() } onSuccess(url) }) }) }, })" wire:ignore {{ $getExtraAlpineAttributeBag() }} >
@endif