\FormBuilder\traits\componentComponentOptionsTrait

Class ComponentOptionsTrait

Summary

Methods
Properties
Constants
option()
options()
setOptions()
No public properties found
No constants found
No protected methods found
$options
N/A
No private methods found
No private properties found
N/A

Properties

$options

$options : array

Type

array

Methods

option()

option(  $value,   $label, boolean  $disabled = false) : $this

设置的选项

Parameters

$value
$label
boolean $disabled

Returns

$this

options()

options(array  $options, boolean  $disabled = false) : $this

批量设置的选项

Parameters

array $options
boolean $disabled

Returns

$this

setOptions()

setOptions(  $options, boolean  $disabled = false) : $this

批量设置选项 支持匿名函数

Parameters

$options
boolean $disabled

Returns

$this