block.js

来自「国内开发的javascript框架应用。龙博javascript。」· JavaScript 代码 · 共 91 行

JS
91
字号
Class('App.linb_UI_Block', 'linb.Com',{    Instance:{        //base Class for linb.Com        base:["linb.UI"],         //requried class for the App        required:["linb.UI.Block", "linb.UI.Button"],         iniComponents:function(){            // [[code created by jsLinb UI Builder            var host=this, children=[], append=function(child){children.push(child.get(0))};                        append((new linb.UI.Block)                .host(host,"block3")                .setLeft(320)                .setTop(60)                .setBorder(true)                .setShadow(true)                .setHtml("shadow")                .setBorderType("none")            );                        append((new linb.UI.Block)                .host(host,"block2")                .setLeft(170)                .setTop(60)                .setBorder(true)                .setHtml("border")                .setBorderType("none")            );                        append((new linb.UI.Block)                .host(host,"block1")                .setLeft(50)                .setTop(60)            );                        host.block1.append((new linb.UI.Button)                .host(host,"button21")                .setLeft(10)                .setTop(30)                .setWidth(80)                .setCaption("button21")            );                        append((new linb.UI.Block)                .host(host,"block4")                .setLeft(470)                .setTop(60)                .setResizer(true)                .setHtml("resizer")            );                        append((new linb.UI.Block)                .host(host,"block6")                .setLeft(60)                .setTop(230)                .setWidth(110)                .setHtml("borderType:inset")                .setBorderType("inset")            );                        append((new linb.UI.Block)                .host(host,"block7")                .setLeft(180)                .setTop(230)                .setWidth(110)                .setHtml("borderType:outset")            );                        append((new linb.UI.Block)                .host(host,"block8")                .setLeft(300)                .setTop(230)                .setWidth(110)                .setHtml("borderType:groove")                .setBorderType("groove")            );                        append((new linb.UI.Block)                .host(host,"block9")                .setLeft(420)                .setTop(230)                .setWidth(110)                .setHtml("borderType:ridge")                .setBorderType("ridge")            );                        return children;            // ]]code created by jsLinb UI Builder        }    }});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?