especial characters in xui.MenuBar components

Develop and Deploy Cross-Browser Web Apps .

especial characters in xui.MenuBar components

Postby macscripter » Sun Nov 17, 2013 10:03 pm

Hi! My easy question is how can I put special characters in the menuBar without having to put things like "í"....

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,"fondo")
.setDock("center")
.setLeft(10)
.setTop(45)
.setWidth(740)
.setHeight(450)
);
host.fondo.append((new xui.UI.MenuBar())
.setHost(host,"menu")
.onMenuSelected("_menu_onmenuselected")
.setItems([{"id":"período", "sub":["AUG13", "SEP13", "OCT13"], "caption":"perodo"}])
);

The word "período" doesn't want to appear correctly.....

Regards
macscripter
 
Posts: 21
Joined: Wed Apr 24, 2013 12:53 pm

Re: especial characters in xui.MenuBar components

Postby support » Mon Nov 18, 2013 1:44 am

You should set to "caption".
   
Class('App', 'xui.Com',{
Instance:{
iniComponents : function(){
// [[Code created by CrossUI RAD Tools
// [[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,"fondo")
.setDock("center")
.setLeft(10)
.setTop(45)
.setWidth(740)
.setHeight(450)
);

host.fondo.append((new xui.UI.MenuBar())
.setHost(host,"menu")
.onMenuSelected("_menu_onmenuselected")
.setItems([{"id":"perodo", "sub":["AUG13", "SEP13", "OCT13"], "caption":"período"}])
);

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


Return to CrossUI for Web Apps

Who is online

Users browsing this forum: No registered users and 0 guests

cron