colvis (1.1.0 dev) + fixedheader (2.1.0 dev) : event triggering
colvis (1.1.0 dev) + fixedheader (2.1.0 dev) : event triggering
Hello,
First of all, thanks for datables and all the plugins... really great job.
I've just updated my code to use the dev version of these 2 plugins.
I see that fixedHeader catch the column-reorder event and the column-visibility.
But there is no trigger in colVis... so i add it.
I've edited ColVis.js Version: 1.1.0-dev on line 513 (_fnDrawCallback function) and add these lines
[code]
/* Fire an event so other plug-ins can update */
$(this.s.dt.nTable).trigger( 'column-visibility');
[/code]
I'm not a gourou, so correct me if i'm wrong.
Hope this is the right thing to do.
++
John
First of all, thanks for datables and all the plugins... really great job.
I've just updated my code to use the dev version of these 2 plugins.
I see that fixedHeader catch the column-reorder event and the column-visibility.
But there is no trigger in colVis... so i add it.
I've edited ColVis.js Version: 1.1.0-dev on line 513 (_fnDrawCallback function) and add these lines
[code]
/* Fire an event so other plug-ins can update */
$(this.s.dt.nTable).trigger( 'column-visibility');
[/code]
I'm not a gourou, so correct me if i'm wrong.
Hope this is the right thing to do.
++
John
This discussion has been closed.
Replies
Allan