Render JQuery object in Datatable Cell
Render JQuery object in Datatable Cell
sdpeixoto
Posts: 1Questions: 0Answers: 0
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]
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]
This discussion has been closed.
Replies
Yes, just feed DataTables the HTML rather than the jQuery object. DataTables does not currently auto detect jQuery objects.
Allan