| Share this post! | Vote this! |
|
Here we focus on the fact that each column’s visibility could also be toggled on and off.
In order to make that work each column has a class attribute set to for instance field-firstname, or field-telephone. That way it will be trivial to select them with jQuery.
The trickiest part is actually to make this work across browser loads (remember the original has pagination and sorting), we need to make the visibility settings stick, and we do that by way of jQuery Cookie.
Demo here. more..
In order to make that work each column has a class attribute set to for instance field-firstname, or field-telephone. That way it will be trivial to select them with jQuery.
The trickiest part is actually to make this work across browser loads (remember the original has pagination and sorting), we need to make the visibility settings stick, and we do that by way of jQuery Cookie.
Demo here. more..




0 comments:
Post a Comment