PDA

View Full Version : how to show grid column tooltip (tdAttr) array values vertically or numbered?



JohnJones357
22 Apr 2014, 9:29 AM
I have a tooltip for grid columns that shows values like so: 1,2,3,4,5,6,7,8...

since these values can also be dates, for better legibility, how can I instead show them as:
1
2
3
4
5
...
...
...

renderer: function(value, meta, record) {
--------
--------
meta.tdAttr = 'data-qtip="<b> Values: ' + vals + '</b>"';
return value;
}

skirtle
22 Apr 2014, 10:45 PM
Can't you just join them with <br> tags?

jsakalos
22 Apr 2014, 10:57 PM
You can also wrap them in <p></p> tags.