Documentation

Keyvalue extends Component
in package

Table of Contents

$hint  : string|null
$id  : string
$isNumber  : bool
Type of value filed is number or not
$label  : string|null
$name  : string
$placeholderKey  : string
$placeholderValue  : string
$value  : mixed
$valueRequired  : bool
Value is required or not
$values  : Collection
__construct()  : mixed
Create a new component instance.
render()  : View|string
Get the view / contents that represent the component.

Properties

$isNumber

Type of value filed is number or not

public bool $isNumber = false

$placeholderKey

public string $placeholderKey

$placeholderValue

public string $placeholderValue

$valueRequired

Value is required or not

public bool $valueRequired = true

Methods

__construct()

Create a new component instance.

public __construct(string $name[, mixed $value = null ][, string $id = null ][, mixed $label = null ][, array<string|int, mixed> $attributes = [] ][, string $placeholderKey = null ][, string $placeholderValue = null ][, string $hint = null ][, bool $isNumber = false ][, bool $valueRequired = true ]) : mixed
Parameters
$name : string
$value : mixed = null
$id : string = null
$label : mixed = null
$attributes : array<string|int, mixed> = []
$placeholderKey : string = null
$placeholderValue : string = null
$hint : string = null
$isNumber : bool = false
$valueRequired : bool = true
Return values
mixed

render()

Get the view / contents that represent the component.

public render() : View|string
Return values
View|string

Search results