Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable js createlement in render function #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion js/core/core.draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ function _fnCreateTr ( oSettings, iRow, nTrIn, anTds )
// Need to create the HTML if new, or if a rendering function is defined
if ( !nTrIn || oCol.mRender || oCol.mData !== i )
{
nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );
var cellData = _fnGetCellData(oSettings, iRow, i, 'display');
// if the render function of columns creates directly a dom object
if (typeof cellData === 'object')
{
nTd.appendChild(cellData);
}
else
{ nTd.innerHTML = cellData; }
}

/* Add user defined class */
Expand Down