|

楼主 |
发表于 2016-12-2 11:16:42
|
显示全部楼层
没有其他代码了啊,上面的就是我的一个控件的点击事件
Model.prototype.col4Click = function(event){
Message.message("aler", "通过代码动态创建MessageDialog");
if (!this.msg)
this.msg = new MsgDialog({
parentNode : this.getElementByXid("row2")
});
this.msg.on('onClose', function(event) {
this.comp('output1').set({
'value' : '点击:' + event.button + ',input:' + event.message
});
}, this);
this.msg.show({
type : this.type,
title : this.title,
message : "<input id='input' style='text-align: center;width:100%'/>",
inputValue : this.inputValue,
width : this.width
});
};
通过这个点击事件,我弹出了个messagedialog,其中input是我自己写的,就是在上面的message里面,其他属性其实是在最初的时候写死的,现在就是要获取input中我输入的值 |
|