My:editor-text
出自Manyou开发者指南
描述
创建一个文本框,类似于 type 为 text 形式的 <input>,本标签必须为 my:editor 标签的子标签。
属性
| 必选性 | 参数名 | 类型 | 描述 | |
| 可选 | label | string | 指定显示在文本框左边的文字 | |
|---|---|---|---|---|
| name | string | 文本框 name 属性的值 | ||
| value | string | 文本框的默认填写值 | ||
| maxlength | int | 允许文本框中输入的最大字符数 |
范例
<my:editor action="?do-it" labelwidth="100">
<my:editor-text label="标题" name="title" value=""/>
<my:editor-buttonset>
<my:editor-button value="添加"/>
<my:editor-button value="重置"/>
<my:editor-cancel />
</my:editor-buttonset>
</my:editor>
![]() |

