responsive discards attributes set by columns.createdCell

responsive discards attributes set by columns.createdCell

michmumichmu Posts: 4Questions: 2Answers: 0

when using columns.createdCell to set some attributes, say title or 'class' - reponsive drops them when moving the column to row details. Same happens to attributes of row header:
https://jsfiddle.net/0cztgfu4/4/
Workaround is to wrap the content in a span / div element - and then set the attrs on the wrapper, instead of directly on the th/td :
https://jsfiddle.net/0cztgfu4/5/

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Yup - good point! Responsive doesn't attempt to copy the attributes from the cell when creating the child row display. Your solution is a good one - thanks for sharing it.

    Allan

  • michmumichmu Posts: 4Questions: 2Answers: 0

    worth mentioning in the doc maybe?

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Yes, I'll find the appropriate place and put it in (the renderer most likely) - thanks.

    Allan

Sign In or Register to comment.