\FormBuilder\traits\formFormCascaderTrait

Class FormCascaderTrait

Summary

Methods
Properties
Constants
cascader()
city()
cityArea()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

cascader()

cascader(  $field,   $title, array  $value = array(), string  $type = \FormBuilder\components\Cascader::TYPE_OTHER) : \FormBuilder\components\Cascader

多级联动组件

Parameters

$field
$title
array $value
string $type

Returns

\FormBuilder\components\Cascader

city()

city(  $field,   $title, array|string  $province = array(), string  $city = '') : \FormBuilder\components\Cascader

省市二级联动

Parameters

$field
$title
array|string $province
string $city

Returns

\FormBuilder\components\Cascader

cityArea()

cityArea(  $field,   $title, array|string  $province = array(), string  $city = '', string  $area = '') : \FormBuilder\components\Cascader

省市区三级联动

Parameters

$field
$title
array|string $province
string $city
string $area

Returns

\FormBuilder\components\Cascader