fieldset.js

来自「axjx工具代码给大家交流」· JavaScript 代码 · 共 84 行

JS
84
字号
Class('App.linb_UI_Fieldset', 'linb.Com',{    Instance:{        //base Class for linb.Com        base:["linb.UI"],        //requried class for the App        required:["linb.UI.Group","linb.UI.Button","linb.UI.Input","linb.UI.Pane"],        iniComponents:function(){            // [[code created by jsLinb UI Builder            var host = this,                children = [],                append = function(child){                    children.push(child.get(0))                };                        append((new linb.UI.Pane)                .host(host,"panel3")                .setLeft(40)                .setTop(60)                .setWidth(260)                .setHeight(130)            );                        host.panel3.append((new linb.UI.Group)                .host(host,"fieldset1")                .setWidth("auto")                .setHeight("auto")                .setZIndex(1)                .setPosition("relative")                .setCaption("fieldset1")            );                        host.fieldset1.append((new linb.UI.Pane)                .host(host,"panel12")                .setLeft(10)                .setWidth(230)                .setHeight(90)                .setPosition("relative")            );                        host.panel12.append((new linb.UI.Button)                .host(host,"button14")                .setLeft(30)                .setTop(30)                .setCaption("button14")            );                        append((new linb.UI.Pane)                .host(host,"panel9")                .setLeft(340)                .setTop(60)                .setWidth(260)                .setHeight(130)            );                        host.panel9.append((new linb.UI.Group)                .host(host,"fieldset3")                .setWidth("auto")                .setHeight("auto")                .setZIndex(1)                .setPosition("relative")                .setCaption("fieldset1")                .setExpend(false)            );                        host.fieldset3.append((new linb.UI.Pane)                .host(host,"panel10")                .setLeft(10)                .setWidth(230)                .setHeight(90)                .setPosition("relative")            );                        host.panel10.append((new linb.UI.Button)                .host(host,"button11")                .setLeft(30)                .setTop(30)                .setCaption("button14")            );                        return children;            // ]]code created by jsLinb UI Builder        }    }});

⌨️ 快捷键说明

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