image

var toolbar = app.getToolbar('MainToolbar');
var btnConfig = new Glodon.Bimface.UI.Button.ButtonConfig();
btnConfig.title = "Button";
var btn = new Glodon.Bimface.UI.Button.Button(btnConfig);
btn.setHtml();
btn.addClassName('btn-test');
btn.addEventListener('Click', function() {

alert("我是一个新button");
});
toolbar.insertControl(2, btn);