It is currently Mon Oct 23, 2017 6:41 pm

News News of CrossUI Code Snaps

Site map of CrossUI Code Snaps » Forum : CrossUI Code Snaps

Find code here before you post.

xui.UI.ToolBar

Class('App', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append((new xui.UI.PopMenu)
.setHost(host,"pop")
.setItems()
);

append((new xui.UI.Pane)
.setHost(host,"pane3")
.setLeft(40)
.setTop(50)
.setWidth(700)
.setHeight(160)
);

host.pane3.append((new xui.UI.ToolBar)
.setHost(host,"toolbar5")
.setItems([{"id":"grp1", "sub":},{"id":"grp2", "sub":},{id:'grp3',sub:},{id:'grp4',sub:[{id:'radio',object:new ...
Read more : xui.UI.ToolBar | Views : 1262 | Replies : 0


xui.UI.MenuBar

Class('App.xui_UI_MenuBar', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append((new xui.UI.PopMenu)
.setHost(host,"popmenu2")
.setItems([{"id":"a", "caption":"item a", "tips":"item a"}, {"id":"b", "caption":"itemb", "tips":"item b", "sub":[{"id":"itema1", "caption":"itema", "tips":"item a"}, {"id":"itemb1", "caption":"itemb", "tips":"item b", "sub":}, {"id":"itemc1", "caption":"itemc", "tips":"item c"}, {"id":"itemd1", "caption":"itemd", "tips":"item d", "sub":}]}, {"id":"itemc", "caption":"itemc", "tips":"item c"}, {"id":"itemd", "caption":"itemd", "tips":"item d"}, {"id":"iteme", "caption":"iteme"}, {"id":"itemf", "caption":"itemf"}, {"id":"itemg", "caption":"itemg"}, {"id":"itemh", "caption":"itemh"}, ...
Read more : xui.UI.MenuBar | Views : 1513 | Replies : 0


xui.UI.PopMenu

Class('App.xui_UI_PopMenu', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append((new xui.UI.PopMenu)
.setHost(host,"popmenu1")
.setItems()
.setShadow(false)
.onMenuSelected("_popmenu1_onmenuselected")
);

append((new xui.UI.PopMenu)
.setHost(host,"popmenu2")
.setItems([{"id":"itema", "caption":"itema", "tips":"item a"}, {"id":"itemb", "caption":"itemb", "tips":"item b", "sub":[{"id":"itema1", "caption":"itema", "tips":"item a"}, {"id":"itemb1", "caption":"itemb", "tips":"item b", "sub":[{"id":"itemc11", "caption":"itemc", "tips":"item c"}, ...
Read more : xui.UI.PopMenu | Views : 1257 | Replies : 0


xui.UI.PageBar

Class('App.xui_UI_PageBar', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host = this,
children = ,
append = function(child){
children.push(child.get(0))
};

append((new xui.UI.Pane)
.setHost(host,"panel9")
.setLeft(20)
.setTop(20)
.setWidth(460)
.setHeight(330)
);

host.panel9.append((new xui.UI.PageBar)
.setHost(host,"pagebar4")
.setValue("1:300:300")
.setLeft(24)
.setTop(170)
.setWidth(330)
.setHeight(23)
.setTabindex("5")
.setCaption("To : ")
.setTextTpl("")
.onClick("_pagebar1_onclick")
);

host.panel9.append((new xui.UI.PageBar)
.setHost(host,"pagebar3")
.setValue("1:6:20")
.setLeft(24)
.setTop(90)
.setWidth(330)
.setHeight(23)
.setTabindex("5")
.setTextTpl("p *")
.onClick("_pagebar1_onclick")
);

host.panel9.append((new xui.UI.PageBar)
.setHost(host,"pagebar1")
.setValue("1:3:32383")
.setLeft(24)
.setTop(15)
.setWidth(330)
.setHeight(23)
.setTabindex("5")
.onClick("_pagebar1_onclick")
);

host.panel9.append((new xui.UI.PageBar)
.setHost(host,"pagebar5")
.setValue("1:300:600")
.setLeft(24) ...
Read more : xui.UI.PageBar | Views : 1325 | Replies : 0


xui.UI.Dialog

Class('App.xui_UI_Dialog', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append(
(new xui.UI.Block)
.setHost(host,"Block2")
.setDock("top")
.setHeight(32)
.setBorder(true)
.setBorderType("none")
);

host.Block2.append(
(new xui.UI.Div)
.setHost(host,"Div3")
.setLeft(16)
.setTop(5)
.setWidth(96)
.setHeight(24)
.setHtml("<b>Dialog demo</b>")
);

append(
(new xui.UI.Layout)
.setHost(host,"layout1")
.setItems()
.setType("horizontal")
);

host.layout1.append(
(new xui.UI.Dialog)
.setHost(host,"Dialog1")
.setLeft(80)
.setTop(70)
.setWidth(408)
.setHeight(264)
.setCaption("Dialog")
, 'main');

host.Dialog1.append(
(new xui.UI.Tabs)
.setHost(host,"Tabs1")
.setItems() ...
Read more : xui.UI.Dialog | Views : 1452 | Replies : 0


xui.UI.ButtonViews

Class('App.xui_UI_ButtonViews', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append((new xui.UI.Block)
.setHost(host,"block6")
.setLeft(590)
.setTop(20)
.setWidth(170)
.setHeight(152)
.setBorder(true)
.setResizer(true)
);

host.block6.append((new xui.UI.ButtonViews)
.setHost(host,"buttonviews8")
.setItems()
.setBarLocation("left")
.setBarVAlign("bottom")
.setValue("a")
);

append((new xui.UI.Block)
.setHost(host,"block2")
.setLeft(210)
.setTop(20)
.setWidth(170)
.setHeight(152)
.setBorder(true)
.setResizer(true)
);

host.block2.append((new xui.UI.ButtonViews)
.setHost(host,"buttonviews4")
.setItems()
.setBarHAlign("right")
.setBarSize("30")
.setValue("a")
);

append((new xui.UI.Block) ...
Read more : xui.UI.ButtonViews | Views : 1258 | Replies : 0


xui.UI.Stacks

Class('App.xui_UI_Stacks', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append((new xui.UI.Stacks)
.setHost(host,"Stacks1")
.setItems()
.setLeft(0)
.setTop(0)
.setValue("view2")
.afterPageClose("_stacks1_afterpageclose")
.onShowOptions("_stacks1_onshowoptions")
.onItemSelected("_stacks1_onitemselected")
);

host.Stacks1.append((new xui.UI.Button)
.setHost(host,"Button1")
.setLeft(240)
.setTop(20)
.setCaption("Button1")
, 'view1');

host.Stacks1.append((new xui.UI.Tabs)
.setHost(host,"tabs6")
.setItems([{"id":"a", "caption":"itema", "tips":"item a", "sub":}, {"id":"b", "caption":"itemb", "tips":"item b"}, {"id":"c", "caption":"itemc", "tips":"item c"}])
.setLeft(0)
.setTop(0)
, 'view2');

host.tabs6.append((new xui.UI.Stacks)
.setHost(host,"stacks3")
.setItems([{"id":"a", "caption":"itema", "tips":"item ...
Read more : xui.UI.Stacks | Views : 1386 | Replies : 0


xui.UI.Tabs

Class('App.xui_UI_Tabs', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append(
(new xui.UI.Tabs)
.setHost(host,"Tabs1")
.setItems()
.setValue("view1")
.beforePageClose("_tabs1_beforepageclose")
.onShowOptions("_tabs1_onshowoptions")
);

host.Tabs1.append(
(new xui.UI.Tabs)
.setHost(host,"tabTest1")
.setItems([{"id":"a", "caption":"html", "html":"<strong>I'm html string</strong>"}, {"id":"b", "caption":"src", "iframeAutoLoad":"http://www.xui.net"}, {"id":"c", "caption":"autoLoad", ...
Read more : xui.UI.Tabs | Views : 1747 | Replies : 0


xui.UI.Layout

Class('App.xui_UI_Layout', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append((new xui.UI.Block)
.setHost(host,"block4")
.setLeft(30)
.setTop(10)
.setWidth(256)
.setHeight(206)
.setBorder(true)
.setResizer(true)
);

host.block4.append((new xui.UI.Layout)
.setHost(host,"layout12")
.setItems()
.setLeft(0)
.setTop(0)
);

host.layout12.append((new xui.UI.Button)
.setHost(host,"button3")
.setLeft(90)
.setTop(20)
.setCaption("button3")
, 'after');

append((new xui.UI.Block)
.setHost(host,"block6")
.setLeft(320)
.setTop(10)
.setWidth(338)
.setHeight(208)
.setBorder(true)
.setResizer(true)
);

host.block6.append((new xui.UI.Layout)
.setHost(host,"layout13")
.setItems()
.setType("horizontal")
);

host.layout13.append((new xui.UI.Layout)
.setHost(host,"layout8")
.setItems([{id:"b1", pos:"before", ...
Read more : xui.UI.Layout | Views : 1371 | Replies : 0


xui.UI.Block

Class('App.xui_UI_Block', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=, append=function(child){children.push(child.get(0))};

append(
(new xui.UI.Block)
.setHost(host,"block3")
.setLeft(320)
.setTop(60)
.setBorder(true)
.setShadow(true)
.setHtml("shadow")
.setBorderType("none")
);

append(
(new xui.UI.Block)
.setHost(host,"block2")
.setLeft(170)
.setTop(60)
.setBorder(true)
.setHtml("border")
.setBorderType("none")
);

append(
(new xui.UI.Block)
.setHost(host,"block1")
.setLeft(50)
.setTop(60)
);

host.block1.append(
(new xui.UI.Button)
.setHost(host,"button21")
.setLeft(10)
.setTop(30)
.setWidth(80)
.setCaption("button21")
);

append(
(new xui.UI.Block)
.setHost(host,"block4")
.setLeft(470)
.setTop(60)
.setResizer(true)
.setHtml("resizer")
);

append(
(new xui.UI.Block)
.setHost(host,"block6")
.setLeft(60)
.setTop(230)
.setWidth(110)
.setHtml("borderType:inset")
.setBorderType("inset")
);

append(
(new xui.UI.Block)
.setHost(host,"block7") ...
Read more : xui.UI.Block | Views : 2058 | Replies : 0


 

Login  •  Register


Statistics

Total posts 991 • Total topics 332 • Total members 35

cron