How to add data-attribute to a cell

Posted by: justin.arias on 9 January 2020, 6:16 am EST

  • Posted 9 January 2020, 6:16 am EST

    Is there a way to set and get custom attributes on either a cell or comment?

  • Posted 9 January 2020, 7:47 pm EST

    Hi Justin,

    If I understand correctly then you need the custom attributes functionality to store some additional info about the cell. For this purpose, SJS provides the tags. Please refer to the following sample demonstrating the same:

    https://www.grapecity.com/spreadjs/demos/features/tag-api/tag-basic/purejs

    Regards

    Sharad

  • Posted 10 January 2020, 1:46 am EST

    This seems to do the trick but, what version of spread was this introduced in?

  • Posted 13 January 2020, 3:40 pm EST

    Hi Justin,

    Tags are supported in SJS all the way back from v3.20143.14.

Need extra support?

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

Learn More

Forum Channels