factory 发表于 2012-11-1 13:47
var btn = new mini.Button();
btn.setHeight("13px");
btn.setText("编辑");
button的样式不好控制,我直接这样了:
var y=document.createElement("span");
y.className="mini-tools-max";
addEventHandler(y,"click",function(){alert("ppp")});
panel.getHeaderEl().childNodes[0].childNodes[2].insertBefore(y,panel.getHeaderEl().childNodes[0].childNodes[2].childNodes[0]);