<entry id='DOJOAccountTransferWgt' definition='../widget/dojobase/dojo_account_transfer.xml'></entry>
dojo.require("dojo.NodeList-fx"); dojo.declare("dojo.account_transfer", null, { …}
<iw:iwidget name="account_transfer" xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget" iScope="dojo.account_transfer" supportedModes="collapse close" mode="view"> <iw:resource uri="Web2ChannelRequest.js"/> <iw:resource uri="dojo_account_transfer.js"/> </iw:iwidget>
onLoad : function() {}
var thisIcontext=this.iContext; thisIcontext.getElementById("titlediv").innerHTML = "Again, We're on our way!"; dojo.query(thisIcontext.getElementById("titlediv")).addClass("testdojoClass").fadeOut({ delay:2000 }).play(); dojo.style(thisIcontext.getElementById("titlediv"),"opacity","0"); var anim1 = dojo.fadeOut({ node: thisIcontext.getElementById("titlediv"), duration:2000 }); var anim2 = dojo.animateProperty({ node: thisIcontext.getElementById("titlediv"), delay: 4000, properties:{ opacity: { end: 1 }, fontSize: { end:19, unit:"pt"} } }); anim1.play(); anim2.play();
dojo.query(this.iContext.getElementById("titlediv")) .style("cursor","pointer") .connect("onclick",function(){ this.innerHTML = "I've been clicked"; var rowId = thisIcontext.getWgt().getContainerId(); var rowId= BTTUtil.Workarea.addService(rowId, 0, {title : 'BTT', draggable : '1'}, {id : "simpleHTMLWgt", attribute : {url:"https://btt.cn.ibm.com"}}); });