\FormBuilder\componentsTreeData

Class TreeData

Summary

Methods
Properties
Constants
__call()
__construct()
children()
child()
build()
()
()
()
()
()
()
()
No public properties found
No constants found
No protected methods found
$children
$props
$propsRule
N/A
No private methods found
No private properties found
N/A

Properties

$children

$children : array

Type

array

$props

$props : array

Type

array

$propsRule

$propsRule : array

Type

array

Methods

__call()

__call(  $name,   $arguments) : $this

设置组件属性

Parameters

$name
$arguments

Throws

\Exception

Returns

$this

__construct()

__construct(  $id,   $title, array  $children = array()) 

TreeData constructor.

Parameters

$id
$title
array $children

children()

children(array  $children) : $this

Parameters

array $children

Returns

$this

build()

build() : array

获取组件的生成规则

Returns

array

()

() : 

$this id(String $id) Id,必须唯一

Returns

()

() : 

$this title(String $title) 标题

Returns

()

() : 

$this expand(Boolean $bool) 是否展开直子节点,默认为false

Returns

()

() : 

$this disabled(Boolean $bool) 禁掉响应,默认为false

Returns

()

() : 

$this disableCheckbox(Boolean $bool) 禁掉 checkbox

Returns

()

() : 

$this selected(Boolean $bool) 是否选中子节点

Returns

()

() : 

$this checked(Boolean $bool) 是否勾选(如果勾选,子节点也会全部勾选)

Returns