Select
extends Component
in package
Select Laravel Blade Component
A select dropdown component with customizable options. Features customizable labels, hints, and styling for enhanced user experience.
Features:
- Customizable select options
- Supports single and multiple selections
- Customizable labels and hints
- Form validation integration
- Livewire real-time updates
- Bulma CSS framework integration
- Mobile-friendly responsive design
Tags
Table of Contents
- $class : string
- $hint : string|null
- $icon : string
- $id : string
- $label : string|null
- $multiple : bool
- $name : string
- $options : mixed
- $placeholder : mixed
- $value : string|null
- __construct() : mixed
- Create a new component instance
- render() : View|string
- Get the view / contents that represent the component.
Properties
$class
public
string
$class
$hint
public
string|null
$hint
= null
$icon
public
string
$icon
$id
public
string
$id
$label
public
string|null
$label
= null
$multiple
public
bool
$multiple
$name
public
string
$name
$options
public
mixed
$options
$placeholder
public
mixed
$placeholder
= null
$value
public
string|null
$value
= null
Methods
__construct()
Create a new component instance
public
__construct(string $name[, mixed $options = [] ][, mixed $value = null ][, string|null $id = null ][, mixed $label = null ][, mixed $placeholder = 'Select' ][, mixed $icon = 'dropdown' ][, bool $multiple = false ][, string|null $classes = null ][, string|null $hint = null ][, bool $sort = false ]) : mixed
Parameters
- $name : string
- $options : mixed = []
- $value : mixed = null
- $id : string|null = null
- $label : mixed = null
- $placeholder : mixed = 'Select'
- $icon : mixed = 'dropdown'
- $multiple : bool = false
- $classes : string|null = null
- $hint : string|null = null
- $sort : bool = false
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string