callback for ColReorder plugin
callback for ColReorder plugin
Hello and thanks for this great tool.
I've implemented a callback for the ColReorder plugin because i have to execute some code after a column has been moved.
I don't know where i can post my code, so here it is (based on th ColReorder 1.0.3) at the end of _fnMouseUp function :
[code]
/* callback */
if ( this.s.init.fnColReorderCallback )
{
this.s.init.fnColReorderCallback.call();
}
[/code]
To use this functionnality, define the function in the datatables init, like this :
[code]
$(document).ready(function() {
/*
* Initialse DataTables
*/
oTable = $('#resume').dataTable( {
/* ... */
"oColReorder": {
"iFixedColumns": 1,
"fnColReorderCallback": function() {
}
},
/* ... */
});
} );
[/code]
I've implemented a callback for the ColReorder plugin because i have to execute some code after a column has been moved.
I don't know where i can post my code, so here it is (based on th ColReorder 1.0.3) at the end of _fnMouseUp function :
[code]
/* callback */
if ( this.s.init.fnColReorderCallback )
{
this.s.init.fnColReorderCallback.call();
}
[/code]
To use this functionnality, define the function in the datatables init, like this :
[code]
$(document).ready(function() {
/*
* Initialse DataTables
*/
oTable = $('#resume').dataTable( {
/* ... */
"oColReorder": {
"iFixedColumns": 1,
"fnColReorderCallback": function() {
}
},
/* ... */
});
} );
[/code]
This discussion has been closed.
Replies
Thanks,
Allan
Regards,
Allan