responsive discards attributes set by columns.createdCell
responsive discards attributes set by columns.createdCell
michmu
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
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
worth mentioning in the doc maybe?
Yes, I'll find the appropriate place and put it in (the renderer most likely) - thanks.
Allan