CrossUI Rad Wishlist.

Write your functional requirement here, be Specific please!

Re: CrossUI Rad Wishlist.

Postby support » Mon Dec 16, 2013 4:36 am

There's a Element control.

   
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.Element())
.setHost(host,"ctl_element1")
.setNodeName("input")
.setAttributes({"type":"button", "value":"ok", "onclick":"alert(9)"})
.setClassName("mycss")
);

return children;
// ]]Code created by CrossUI RAD Tools
}
}
});
   
support
 
Posts: 351
Joined: Sat Apr 27, 2013 9:22 am

Re: CrossUI Rad Wishlist.

Postby tomy300 » Mon Dec 16, 2013 9:18 pm

that's cool :)

but how to call a xui function

.setNodeName("input")
.setAttributes({"type":"button", "value":"ok", onclick="doclick()"})

doclick is a function I made in crossui

doclick: function(){
alert('hello');
},

it's does't work , so I tried this

.setHost(host,"ctl_element1")
.setClassName("mycss")
.setLeft(40)
.setTop(300)
.setWidth(110)
.setHeight(30)
.setNodeName("input")
.onClick("doclick")
);

but don't work too..
tomy300
 
Posts: 70
Joined: Sat Nov 09, 2013 12:27 am

Re: CrossUI Rad Wishlist.

Postby support » Tue Dec 17, 2013 9:02 am

In this case, you should use

xui.publish / xui.subscribe, you can learn them from API.
support
 
Posts: 351
Joined: Sat Apr 27, 2013 9:22 am

Previous

Return to Functional Requirement

Who is online

Users browsing this forum: No registered users and 0 guests

cron