\FormBuilder\componentsOption

Class Option

Summary

Methods
Properties
Constants
__construct()
verify()
disabled()
build()
No public properties found
No constants found
No protected methods found
$props
N/A
No private methods found
No private properties found
N/A

Properties

$props

$props : array

Type

array

Methods

__construct()

__construct(  $value, string  $label = '', boolean  $disabled = false) 

Option constructor.

Parameters

$value
string $label
boolean $disabled

verify()

verify(  $value,   $label) 

Parameters

$value
$label

disabled()

disabled(boolean  $disabled = true) : $this

Parameters

boolean $disabled

Returns

$this

build()

build() : array

获取组件的生成规则

Returns

array