MediaSelect
extends Component
in package
Table of Contents
- $containerWidth : int
- $defaultLabel : string|null
- $defaultSrc : mixed
- $hint : string|null
- $id : string
- $isRight : bool
- $itemWidth : int
- $label : string|null
- $name : string
- $options : mixed
- $placeholder : string|null
- $preview : bool
- $value : string|null
- __construct() : mixed
- Create a new component instance.
- render() : View|string
- Get the view / contents that represent the component.
Properties
$containerWidth
public
int
$containerWidth
$defaultLabel
public
string|null
$defaultLabel
= null
$defaultSrc
public
mixed
$defaultSrc
= null
$hint
public
string|null
$hint
= null
$id
public
string
$id
$isRight
public
bool
$isRight
= false
$itemWidth
public
int
$itemWidth
$label
public
string|null
$label
= null
$name
public
string
$name
$options
public
mixed
$options
$placeholder
public
string|null
$placeholder
= null
$preview
public
bool
$preview
$value
public
string|null
$value
= null
Methods
__construct()
Create a new component instance.
public
__construct(string $name[, mixed $options = [] ][, string $value = null ][, string $id = null ][, bool $label = null ][, string $placeholder = 'Select' ][, string $hint = null ][, bool $preview = true ][, int $containerWidth = 600 ][, int $itemWidth = 200 ][, bool $isRight = false ]) : mixed
Parameters
- $name : string
- $options : mixed = []
- $value : string = null
- $id : string = null
- $label : bool = null
- $placeholder : string = 'Select'
- $hint : string = null
- $preview : bool = true
- $containerWidth : int = 600
- $itemWidth : int = 200
- $isRight : bool = false
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string