link.js
来自「axjx工具代码给大家交流」· JavaScript 代码 · 共 44 行
JS
44 行
Class('App.linb_UI_Link', 'linb.Com',{ Instance:{ base:["linb.UI"], required:["linb.UI.Link"], iniComponents:function(){ // [[code created by jsLinb UI Builder var host=this, children=[], append=function(child){children.push(child.get(0))}; append((new linb.UI.Link) .host(host,"link1") .setLeft(70) .setTop(50) .setCaption("link1") ); append((new linb.UI.Link) .host(host,"link2") .setLeft(170) .setTop(50) .setCaption("click me") .onShowTips("_shotips") .onClick("_link2_onclick") ); append((new linb.UI.Link) .host(host,"link3") .setDisabled(true) .setLeft(290) .setTop(50) .setCaption("disabled") ); return children; // ]]code created by jsLinb UI Builder }, _link2_onclick:function (profile, e) { linb.message(profile.boxing().getCaption() + ' clicked') }, _shotips:function(profile,node, pos){ linb.Tips.show(pos, 'link tips'); return true; } }});
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?