How can I render HTML in a cell?

Posted by: nagavardhan on 8 September 2017, 12:52 am EST

  • Posted 8 September 2017, 12:52 am EST

    Hi,

    Is it possible to render HTML in a cell?

    Thanks.

  • Posted 8 September 2017, 12:52 am EST

    Hello,

    Currently, SpreadJS does not provides an option to display formatted HTML content in a cell. Could you please elaborate the use case and your requirement so, that we can accordingly escalate the issue to the concerned team for further review.

    Thanks,

    Reeva

  • Posted 8 September 2017, 12:52 am EST

    There is a sample draw html in cell by using svg, but it doesn’t work in IE, because IE doesn’t support foreignObject yet.

    http://embed.plnkr.co/mzQ4oN/preview

    Hope it helps,

  • Posted 8 September 2017, 12:52 am EST

    Eric - Thanks for the snippet.

    Is new version (2015 v1) supports Double underline and Account formatting?

  • Posted 8 September 2017, 12:52 am EST

    2015v1 does not include these, there is a sample may be reference:

    http://embed.plnkr.co/y2D2T9

  • Posted 5 February 2018, 3:41 pm EST

    HIi,

    I tried above in V11 and it doesnt work as expected because V11 is not exposing private property (_renderTextDecoration) on text celltype, How to achieve this in spread V11?

    Can you please suggest the alternative for the same in v11.

  • Posted 19 February 2018, 1:20 am EST

  • Posted 29 September 2020, 3:29 am EST - Updated 3 October 2022, 1:04 am EST

    Hi above one we are not able to export, It will download with the HTML tags

  • Posted 29 September 2020, 11:15 pm EST

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels