Files
nutzwerte_fi4/app/Forms/Components/PlanRadioGroup.php
T
2025-09-30 14:06:03 +02:00

25 lines
474 B
PHP

<?php
namespace App\Forms\Components;
use Filament\Forms\Components\Field;
class PlanRadioGroup extends Field
{
protected string $view = 'forms.components.custom-radio-group';
protected array $options = []; // Property to store options
public function options(array $options): static
{
$this->options = $options;
return $this;
}
public function getOptions(): array
{
return $this->evaluate($this->options);
}
}