buttons: ["top", "add", "remove", "bottom"],
buttonsText: {
top:"添加全部>>",
add:"添加>",
remove: "<移除 ",
bottom: "<<移除全部"
},
onTopBtnClick: function () {//将top的事件改成全选的事件
var me = this,
fromList = me.fromField.boundList,
allRec = fromList.getStore().getRange();
fromList.getStore().remove(allRec);
me.toField.boundList.getStore().add(allRec);
me.syncValue();//lishk +
},
onBottomBtnClick: function () { //将Bottom的事件改成全不选的事件
var me = this,
toList = me.toField.boundList,
allRec = toList.getStore().getRange();
toList.getStore().remove(allRec);
me.fromField.boundList.getStore().add(allRec);
me.syncValue();//lishk +
}