Render JQuery object in Datatable Cell

Render JQuery object in Datatable Cell

sdpeixotosdpeixoto Posts: 1Questions: 0Answers: 0
edited February 2013 in DataTables 1.9
Hi,

Could you please confirm if it possible to render a JQuery object like a toggle button in a DataTable cell?

I tried to use the followinf code, however the result is not the same as outiside of DataTable object.

Adding a new row in the cliend side to an existing DataTable:
[code]
oTable.fnAddData
(
[
'TTT',
'Luz Tecto Cozinha Added',
'OffOn'
]
);
[/code]

Replies

  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin
    > Could you please confirm if it possible to render a JQuery object like a toggle button in a DataTable cell?

    Yes, just feed DataTables the HTML rather than the jQuery object. DataTables does not currently auto detect jQuery objects.

    Allan
This discussion has been closed.