Generated by JsDoc Toolkit 2.4.0 on Wed Sep 22 2010 09:30:54 GMT+0100 (BST)
HTML template: Codeview

Class ColVis

ColVis
Defined in: ColVis.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ColVis(DataTables)
ColVis provides column visiblity control for DataTables
Field Summary
Field Attributes Field Name and Description
<constant>  
Name of this class
<static> <constant>  
ColVis.VERSION
ColVis version
Method Summary
Method Attributes Method Name and Description
<private>  
Loop through the columns in the table and as a new button for each one.
<private>  
Apply any customisation to the settings from the DataTables initialisation
<private>  
Hide the show / hide list and the background
<private>  
Show the show / hide list and the background
<private>  
Constructor logic
<private>  
Create the element used to shade the background, and capture hide events (it is shown and hidden as needed)
<private>  
Create the DOM needed for the button and apply some base properties.
<private>  
An element to be placed on top of the activate button to catch events
<private>  
Create the element used to contain list the columns (it is shown and hidden as needed)
<private>  
Create the DOM for a show / hide button
<private>  
On each table draw, check the visiblity checkboxes as needed.
Class Detail
ColVis(DataTables)
ColVis provides column visiblity control for DataTables
Parameters:
{object} DataTables
settings object
Field Detail
<constant> {String} CLASS
Name of this class
Default Value:
ColVis
<static> <constant> {String} ColVis.VERSION
ColVis version
Default Value:
1.0.0
Method Detail
<private> _fnAddButtons()
Loop through the columns in the table and as a new button for each one.
Returns:
void
<private> _fnApplyCustomisation()
Apply any customisation to the settings from the DataTables initialisation
Returns:
void
<private> _fnCollectionHide()
Hide the show / hide list and the background
Returns:
void
<private> _fnCollectionShow()
Show the show / hide list and the background
Returns:
void
<private> _fnConstruct()
Constructor logic
Returns:
void
<private> {Node} _fnDomBackground()
Create the element used to shade the background, and capture hide events (it is shown and hidden as needed)
Returns:
{Node} div container for the background
<private> {Node} _fnDomBaseButton(text)
Create the DOM needed for the button and apply some base properties. All buttons start here
Parameters:
{String} text
Button text
Returns:
{Node} DIV element for the button
<private> {Node} _fnDomCatcher()
An element to be placed on top of the activate button to catch events
Returns:
{Node} div container for the collection
<private> {Node} _fnDomCollection()
Create the element used to contain list the columns (it is shown and hidden as needed)
Returns:
{Node} div container for the collection
<private> {Node} _fnDomColumnButton(i)
Create the DOM for a show / hide button
Parameters:
{int} i
Column in question
Returns:
{Node} Created button
<private> _fnDrawCallback()
On each table draw, check the visiblity checkboxes as needed. This allows any process to update the table's column visiblity and ColVis will still be accurate.
Returns:
void