大部分属性的用法与一致。
在表单中使用
<ui.form><form.item cols="12" title="备注" hint="写点备注吧"><ui.textarea placeholder="请输入备注" /></form.item></ui.form>
var component = new NEKUI.Component({template: template,data: {maxLength: 10,value: '',rules: [{method: function(text) {return (text || '').length <= component.data.maxLength;}, on: 'keyup+blur', message: '字数超出限制!'}]}});
API
Classes
Functions
TextArea
TextArea2 输入扩展
Author: sensen(rainforest92@126.com)
config()
Kind: global functionAccess: protected
Kind: global functionReturns: object
- result 结果Access: public