Author Topic: Table export problem!  (Read 1461 times)

dreams

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 21
    • View Profile
Table export problem!
« 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="">&nbsp;+35.29%</a>

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Table export problem!
« Reply #1 on: April 02, 2020, 09:00:07 am »
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.
« Last Edit: April 02, 2020, 09:04:24 am by paramvir »