Table
extends Component
in package
Table Laravel Blade Component
A dynamic table component allowing users to add or remove rows. Features customizable fields, labels, and sample data for enhanced user experience.
Features:
- Dynamic row addition and removal
- Customizable fields with various input types
- Sample data display for guidance
- Customizable labels
- Form validation integration
- Bulma CSS framework integration
- Mobile-friendly responsive design
Tags
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> = []
-
- Key-value pair of pattern for each field *
- $label : string|null = null
- $sample : bool = true
-
- Whether to show sample data or not
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string