Duffer Derek
<?php
namespace Filament\Forms\Concerns;
use Closure;
trait HasFieldWrapper
{
protected string | Closure | null $fieldWrapperView = null;
public function fieldWrapperView(string | Closure | null $view): static
{
$this->fieldWrapperView = $view;
return $this;
}
public function getCustomFieldWrapperView(): ?string
{
return $this->evaluate($this->fieldWrapperView) ??
$this->getParentComponent()?->getCustomFieldWrapperView();
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists