div.js
来自「axjx工具代码给大家交流」· JavaScript 代码 · 共 42 行
JS
42 行
Class('App.linb_UI_Div', 'linb.Com',{ Instance:{ base:["linb.UI"], required:["linb.UI.Div"], iniComponents:function(){ // [[code created by jsLinb UI Builder var host=this, children=[], append=function(child){children.push(child.get(0))}; append((new linb.UI.Div) .host(host,"div1") .setLeft(60) .setTop(40) .setHtml("text string") ); append((new linb.UI.Div) .host(host,"div2") .setLeft(190) .setTop(40) .setHtml("<strong>html string</strong>") .onShowTips("_showtips") .setCustomStyle({"KEY":"background:#00ff00;border:solid 1px #888"}) ); append((new linb.UI.Div) .host(host,"div3") .setLeft(320) .setTop(40) .setRenderer(function(data, uidata){ uidata.html='[rederer]'; }) ); return children; // ]]code created by jsLinb UI Builder }, _showtips:function(profile, node, pos){ linb.Tips.show(pos, 'div tips'); return true; } }});
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?