Documentation

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

$defaultLabel

public string|null $defaultLabel = 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
Return values
View|string

Search results