text 检查器类型允许在弹出窗口中输入多行长文本值. 此编辑器没有任何特定参数. 编辑器的可选 default 参数应包含一个字符串.
public function defineProperties()
{
return [
'description' => [
'title' => 'Description',
'type' => 'text',
'default' => 'This is a default description'
]
];
}生成后的输出是一个字符串值,对应于所选选项,例如:
"description": "This is a description"以下配置值是常用的。
| Property | Description |
|---|---|
| title | title for the property. |
| description | a brief description of the property, optional. |
| default | specifies a default string value, optional. |