Closed GoogleCodeExporter closed 9 years ago
Hi,
Thanks for this I will update plugin.
Is the $(this.cells[0].children[0]).attr('src', '../../Images/details.png');
necessary? I know that it is used to switch on/off open button but could we
avoid hard-coding this image especially if someone want to use different name
or file path in design? Do you know is there any more generic way to achieve
this?
Regards,
Jovan
Original comment by joc...@gmail.com
on 13 Jul 2012 at 3:42
Original comment by joc...@gmail.com
on 13 Jul 2012 at 10:50
No, the src file for the expand/collapse button probably should be left to the
user. . Our aded as an option on fnOpen/Close.
Original comment by rvg...@gmail.com
on 14 Jul 2012 at 8:46
Hi,
I have included this in version 1.2.2. However this custom code need to be
placed in the fnOnRowClosed function parameter. There you can put whatever is
specific in design. Below in new code:
if (oTable.fnIsOpen(this)) {
if (properties.fnOnRowClosed != null) {
properties.fnOnRowClosed(this);
// $(this.cells[0].children[0]).attr('src', '../../Images/details.png');
}
oTable.fnClose(this);
}
I hope that this will work in your code too. Just put something like a:
fnOnRowClosed: function(row) {
$(row.cells[0].children[0]).attr('src', '../../Images/details.png');
}
in the initialization.
Regards,
Jovan
Regards,
Jovan
Original comment by joc...@gmail.com
on 15 Jul 2012 at 11:28
Thanks Jovan. I'll uodate my apps!
Bob
Original comment by rvg...@gmail.com
on 17 Jul 2012 at 5:03
Original issue reported on code.google.com by
rvg...@gmail.com
on 2 Apr 2012 at 8:10