PlanRadioOptions
This commit is contained in:
1 parent
b00af65e72
commit
8463f50f6b
4 files changed
+72
-8
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user