Real code version

Develop and Deploy Cross-Browser Web Apps .

Real code version

Postby kevinotton » Fri Mar 03, 2017 2:38 pm

Can anyone write this out as normal code. I can't get the syntax right as it is a window in a window and refuses to accept "main"

xui.ComFactory.newCom("App.userPrefs",function(){ ????????????????

The code auto generated work a treat (shown below) I know I don't need the conditions part

"desc":"userprefs",
"type":"page",
"target":"App.userPrefs",
"params":["{page.verticalLayout}","main"],
"method":"show",
"conditions":[{
"left":"{args[1].id}",
"symbol":"=",
"right":"userprefs"

Thanks
Kevin
kevinotton
 
Posts: 38
Joined: Thu May 15, 2014 8:18 am
Location: Needham Market, Suffolk, UK

Re: Real code version

Postby support » Wed Mar 08, 2017 3:13 pm

"args" is the array of parameters for the event function, you need find the event name from you event handler, and search the parameters in API
support
 
Posts: 350
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