xui.UI.StatusButtons

Find code here before you post.

xui.UI.StatusButtons

Postby linb » Fri Apr 26, 2013 2:48 pm

   
Class('App.xui_UI_StatusButtons', '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.StatusButtons)
.setHost(host,"linklist1")
.setItems([{"id":"a", "caption":"itema", "tips":"item a"}, {"id":"b", "caption":"itemb", "tips":"item b"}, {"id":"c", "caption":"itemc", "tips":"item c"}])
.setLeft(40)
.setTop(40)
.setWidth(250)
.setHeight(50)
);

append(
(new xui.UI.StatusButtons)
.setHost(host,"linklist2")
.setItems([{"id":"a", "caption":"itema", "tips":"item a"}, {"id":"b", "caption":"itemb", "tips":"item b"}, {"id":"c", "caption":"itemc", "tips":"item c"}])
.setLeft(40)
.setTop(90)
.setWidth(250)
.setHeight(50)
.setItemMargin("4px")
.setSelMode('multi')
.setItemLinker("none")
.onItemSelected("_linklist2_sel")
);

append(
(new xui.UI.StatusButtons)
.setHost(host,"ctl_statusbuttons5")
.setItems([{"id":"a", "caption":"itema", "tips":"item a", "itemLinker":"right"}, {"id":"b", "caption":"itemb", "tips":"item b", "itemLinker":"none","itemMargin":"0 2px 0 0 "}, {"id":"c", "caption":"itemc", "tips":"item c", "itemLinker":"none","itemMargin":"0 0 0 2px"}, {"id":"d", "caption":"itemd", "tips":"item d"}])
.setLeft(40)
.setTop(140)
.setWidth(250)
.setHeight(50)
);

return children;
// ]]code created by CrossUI RAD Tools
},
_linklist2_sel:function (profile, item) {
xui.message(item.id);
}
}
});
   
linb
Site Admin
 
Posts: 102
Joined: Thu Apr 25, 2013 6:51 am

Return to CrossUI Code Snaps

Who is online

Users browsing this forum: No registered users and 1 guest

cron