fnIsOpen is not working
fnIsOpen is not working
Rahesh R
Posts: 1Questions: 1Answers: 0
Here is my code
$('#tblsamplebody ').on('click', 'img', function () {
var nTr = $(this).parents('tr')[0];
var nTds = this;
if (dTable.fnIsOpen(nTr)) {
/* This row is already open - close it */
this.src = "http://i.imgur.com/SD7Dz.png";
dTable.fnClose(nTr);
}
}
Usind DT1.10.7
DT tabletools 2.2.4
This discussion has been closed.
Answers
fnIsOpen is a legacy API method. I would suggest you use
row().child.isShown()
.It would also be worth reading this FAQ about error messages when attempting to access the API.
Allan