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
$hint
public
string|null
$hint
= null
$id
public
string
$id
$isNumber
Type of value filed is number or not
public
bool
$isNumber
= false
$label
public
string|null
$label
= null
$name
public
string
$name
$placeholderKey
public
string
$placeholderKey
$placeholderValue
public
string
$placeholderValue
$value
public
mixed
$value
$valueRequired
Value is required or not
public
bool
$valueRequired
= true
$values
public
Collection
$values
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