Row details assign DOM object and not html
Row details assign DOM object and not html
What I do not like in row details(http://datatables.net/examples/api/row_details.html) what data for Row Details method is assigned as html code. Is it possible to assign DOM object?
For example
function fnFormatDetails ( oTable, nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = document.getElementById(MyDiv);
return sOut;
}
For example
function fnFormatDetails ( oTable, nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = document.getElementById(MyDiv);
return sOut;
}
This discussion has been closed.
Replies
[code]
var nNew = oTable.fnOpen( nTr, '' );
nNew.getElementsByTagName('td')[0].appendChild( MyDiv );
[/code]
Allan