ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: dreams on April 02, 2020, 08:19:02 am
-
title: "增幅",
width: 70,
dataType: "float",
align: "right",
dataIndx: "XSZZL",
format: function (val) {
if (val <= 0) {
return redblack + val +'%'+ endblack;
} else {
return black + '+' + val + '%'+endblack;
}
}
After the data has been formatted, the export is like this
<a style=""> +35.29%</a>
-
What are redblack and endblack variables?
There are no <a> tags in your code, so they seem to be added in column.render callback.
Could you please share complete code via a jsfiddle.