Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82052

Get the value of a cell in datatables

$
0
0

I have these columns:

columns: [
{data: 'values.0.2'},
{data: 'values.0.3'},
{data: 'values.0.4'},
]

I need to get its value separated by commas within a span like this:

render: function(data, type, row, meta){
var sequence = "<span class='row.bar'>"1,2,3</span>";
return sequence

In other words, you need this:

<span class='row.bar'>"VALUE ROW 1,VALUE ROW 2,VALUE ROW 3</span>";

Example:

If this:

columns: [
{data: 'values.0.2'},
{data: 'values.0.3'},
{data: 'values.0.4'},
]

Show this:

<td>1</td>
<td>2</td>
<td>3</td>

I need:

<span class='row.bar'>1,2,3</span>

Someone has knowledge on how to obtain this. Thank you.


Viewing all articles
Browse latest Browse all 82052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>