⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 label.js

📁 axjx工具代码给大家交流
💻 JS
字号:
Class('App.linb_UI_Label', 'linb.Com',{    Instance:{        base:["linb.UI"],        required:["linb.UI.Label"],        iniComponents:function(){            // [[code created by jsLinb UI Builder            var host = this,                children = [],                append = function(child){                    children.push(child.get(0))                };                        append((new linb.UI.Label)                .host(host,"label6")                .setLeft(64)                .setTop(232)                .setWidth(232)                .setHeight(64)                .setCaption("<strong>label</strong> (left/bottom)")                .setBorder(true)                .setHAlign("left")                .setVAlign("bottom")            );                        append((new linb.UI.Label)                .host(host,"label2")                .setLeft(64)                .setTop(56)                .setWidth(224)                .setHeight(32)                .setBorder(true)                .setCaption("label with border")            );                        append((new linb.UI.Label)                .host(host,"label7")                .setLeft(632)                .setTop(128)                .setWidth(136)                .setHeight(80)                .setCaption("resizable label")                .setBorder(true)                .setHAlign("center")                .setResizer(true)            );                        append((new linb.UI.Label)                .host(host,"label9")                .setLeft(336)                .setTop(56)                .setWidth(224)                .setHeight(32)                .setBorder(true)                .setCaption("label (exStyle:'cursor:pointer')")                .setCustomStyle({"KEY":"cursor:pointer"})            );                        append((new linb.UI.Label)                .host(host,"label10")                .setLeft(336)                .setTop(96)                .setWidth(224)                .setHeight(32)                .setBorder(true)                .setCaption("label with image")                .setImage("img/demo.gif")            );                        append((new linb.UI.Label)                .host(host,"label11")                .setLeft(280)                .setTop(184)                .setWidth(280)                .setHeight(72)                .setBorder(true)                .setCaption("label (zIndex:2)")                .setZIndex("2")            );                        append((new linb.UI.Label)                .host(host,"label1")                .setLeft(65)                .setTop(16)                .setWidth(224)                .setHeight(32)                .setCaption("normal label")            );                        append((new linb.UI.Label)                .host(host,"label3")                .setLeft(64)                .setTop(144)                .setWidth(224)                .setHeight(32)                .setCaption("label with shadow text")                .setShadowText(true)                .setFontSize("16px")                .setFontWeight("bold")            );                        append((new linb.UI.Label)                .host(host,"label4")                .setLeft(64)                .setTop(192)                .setWidth(232)                .setHeight(32)                .setCaption("<strong>label</strong> (center/middle)")                .setBorder(true)                .setHAlign("center")            );                        append((new linb.UI.Label)                .host(host,"label5")                .setLeft(64)                .setTop(96)                .setWidth(224)                .setHeight(32)                .setShadow(true)                .setBorder(true)                .setCaption("label with border&shadow")            );                        append((new linb.UI.Label)                .host(host,"label12")                .setLeft(280)                .setTop(280)                .setWidth(280)                .setHeight(64)                .setBorder(true)                .setCaption("label (set background in onRender event)")                .setZIndex("2")                .onRender("_label12_aftercreated")            );                        return children;            // ]]code created by jsLinb UI Builder        },        _label12_aftercreated:function (profile) {             profile.getSubNode('BORDER').css('background','#fff');        }    }});

⌨️ 快捷键说明

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