Table
extends Component
in package
Table of Contents
- $fields : Collection
- $id : string
- $label : string
- $name : string
- Collection of fields
- $sample : bool
- $widths : array<string|int, mixed>
- __construct() : mixed
- Create a new component instance
- render() : View|string
- Get the view / contents that represent the component.
Properties
$fields
public
Collection
$fields
$id
public
string
$id
$label
public
string
$label
$name
Collection of fields
public
string
$name
$sample
public
bool
$sample
$widths
public
array<string|int, mixed>
$widths
Methods
__construct()
Create a new component instance
public
__construct(string $name, array<string|int, mixed> $fields[, array<string|int, mixed> $widths = [] ][, array<string|int, mixed> $required = [] ][, array<string|int, mixed> $defaults = [] ][, array<string|int, mixed> $min = [] ][, array<string|int, mixed> $max = [] ][, array<string|int, mixed> $step = [] ][, array<string|int, mixed> $pattern = [] ][, string|null $label = null ][, bool $sample = true ]) : mixed
Parameters
- $name : string
- $fields : array<string|int, mixed>
-
- Array of fields [type (text|number), name, label]
- $widths : array<string|int, mixed> = []
-
- Array of field widths
- $required : array<string|int, mixed> = []
-
- Array of required fields
- $defaults : array<string|int, mixed> = []
-
- Key-value pair of default value of each field
- $min : array<string|int, mixed> = []
-
- Key-value pair of min value of each field
- $max : array<string|int, mixed> = []
-
- Key-value pair of max value of each field
- $step : array<string|int, mixed> = []
-
- Key-value pair of step value of each field
- $pattern : array<string|int, mixed> = []
- $label : string|null = null
- $sample : bool = true
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string