ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
Multiple return statements from function
« previous
next »
Print
Pages: [
1
]
Author
Topic: Multiple return statements from function (Read 1985 times)
eastofthesun882
Guest
Multiple return statements from function
«
on:
February 03, 2016, 06:02:35 pm »
Hi
Trying to return multiple statements...
...
render: function (ui) {
if (ui.cellData != ""){
if (ui.cellData < 10 )
{
return style: "font-weight:bold";
return ui.cellData + "$";
}
}
}
...
How should that be handled?
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: Multiple return statements from function
«
Reply #1 on:
February 03, 2016, 06:31:28 pm »
There can be only one return statement.
for basic version it's
return "<span style='font-weight:bold;'>" + ui.cellData + "$</span>";
Logged
eastofthesun882
Guest
Re: Multiple return statements from function
«
Reply #2 on:
February 03, 2016, 07:31:24 pm »
Thanks!
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
Multiple return statements from function