Quantcast
Viewing all articles
Browse latest Browse all 82152

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
/* Fire an event so other plug-ins can update */
$(this.s.dt.nTable).trigger( 'column-visibility');

I'm not a gourou, so correct me if i'm wrong.
Hope this is the right thing to do.

++
John

Viewing all articles
Browse latest Browse all 82152

Trending Articles