ContainerEnum
extends Component
in package
Table of Contents
- $cases : array<string|int, mixed>
- $label : string
- $useColor : bool
- __construct() : void
- Create a new ContainerEnum component instance.
- render() : View|Closure|string
- Get the view / contents that represent the component.
Properties
$cases
public
array<string|int, mixed>
$cases
$label
public
string
$label
$useColor
public
bool
$useColor
= false
Methods
__construct()
Create a new ContainerEnum component instance.
public
__construct(string $label, array<string|int, mixed> $cases[, bool $useColor = false ]) : void
Parameters
- $label : string
-
The label for the enum container
- $cases : array<string|int, mixed>
-
Array of enum cases to display
- $useColor : bool = false
-
Whether to use color coding for cases (default: false)
Return values
void —render()
Get the view / contents that represent the component.
public
render() : View|Closure|string