__construct() __construct(String $field, String $title, String $value = null) FormComponentDriver constructor. Parameters String $field 字段名 String $title 字段昵称 String $value 字段值
required() required(string $message = null, $trigger = 'blur') : $this 组件的值为必填 Parameters string $message $trigger Returns $this
__call() __call( $name, $arguments) : $this 设置组件属性 Parameters $name $arguments Throws \Exception Returns $this
autoSize() autoSize(\FormBuilder\components\Number $minRows, \FormBuilder\components\Number $maxRows) : $this 自适应内容高度,仅在 textarea 类型下有效 Parameters \FormBuilder\components\Number $minRows \FormBuilder\components\Number $maxRows Returns $this
setRequired() setRequired(null $message = '', $trigger = 'change', $type = null) : $this 设置组件的值为必填 Parameters null $message $trigger $type Returns $this