examples/webconsole/resources/js/jquery/jquery.dataTables.js
function _fnAddColumn( oSettings, nTh )
		{
			var oDefaults = DataTable.defaults.columns;
			var iCol = oSettings.aoColumns.length;
			var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
				"sSortingClass": oSettings.oClasses.sSortable,
				"sSortingClassJUI": oSettings.oClasses.sSortJUI,
				"nTh": nTh ? nTh : document.createElement('th'),
				"sTitle":    oDefaults.sTitle    ? oDefaults.sTitle    : nTh ? nTh.innerHTML : '',
				"aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
				"mDataProp": oDefaults.mDataProp ? oDefaults.oDefaults : iCol
			} );
			oSettings.aoColumns.push( oCol );
			
			/* Add a column specific filter */
			if ( oSettings.aoPreSearchCols[ iCol ] === undefined || oSettings.aoPreSearchCols[ iCol ] === null )
			{
				oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
			}
			else
			{
				var oPre = oSettings.aoPreSearchCols[ iCol ];
				
				/* Don't require that the user must specify bRegex, bSmart or bCaseInsensitive */
				if ( oPre.bRegex === undefined )
				{
					oPre.bRegex = true;
				}
				
				if ( oPre.bSmart === undefined )
				{
					oPre.bSmart = true;
				}
				
				if ( oPre.bCaseInsensitive === undefined )
				{
					oPre.bCaseInsensitive = true;
				}
			}
			
			/* Use the column options function to initialise classes etc */
			_fnColumnOptions( oSettings, iCol, null );
		}
function _fnAddColumn( oSettings, nTh )
		{
			var oDefaults = DataTable.defaults.columns;
			var iCol = oSettings.aoColumns.length;
			var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
				"sSortingClass": oSettings.oClasses.sSortable,
				"sSortingClassJUI": oSettings.oClasses.sSortJUI,
				"nTh": nTh ? nTh : document.createElement('th'),
				"sTitle":    oDefaults.sTitle    ? oDefaults.sTitle    : nTh ? nTh.innerHTML : '',
				"aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
				"mDataProp": oDefaults.mDataProp ? oDefaults.oDefaults : iCol
			} );
			oSettings.aoColumns.push( oCol );
			
			/* Add a column specific filter */
			if ( oSettings.aoPreSearchCols[ iCol ] === undefined || oSettings.aoPreSearchCols[ iCol ] === null )
			{
				oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
			}
			else
			{
				var oPre = oSettings.aoPreSearchCols[ iCol ];
				
				/* Don't require that the user must specify bRegex, bSmart or bCaseInsensitive */
				if ( oPre.bRegex === undefined )
				{
					oPre.bRegex = true;
				}
				
				if ( oPre.bSmart === undefined )
				{
					oPre.bSmart = true;
				}
				
				if ( oPre.bCaseInsensitive === undefined )
				{
					oPre.bCaseInsensitive = true;
				}
			}
			
			/* Use the column options function to initialise classes etc */
			_fnColumnOptions( oSettings, iCol, null );
		}
function _fnAddColumn ( oSettings , nTh ) { var oDefaults = DataTable . defaults . columns ; var iCol = oSettings . aoColumns . length ; var oCol = $ . extend ( { } , DataTable . models . oColumn , oDefaults , { "sSortingClass" : oSettings . oClasses . sSortable , "sSortingClassJUI" : oSettings . oClasses . sSortJUI , "nTh" : nTh ? nTh : document . createElement ( 'th' ) , "sTitle" : oDefaults . sTitle ? oDefaults . sTitle : nTh ? nTh . innerHTML : '' , "aDataSort" : oDefaults . aDataSort ? oDefaults . aDataSort : [ iCol ] , "mDataProp" : oDefaults . mDataProp ? oDefaults . oDefaults : iCol } ) ; oSettings . aoColumns . push ( oCol ) ; /* Add a column specific filter */ if ( oSettings . aoPreSearchCols [ iCol ] === undefined || oSettings . aoPreSearchCols [ iCol ] === null ) { oSettings . aoPreSearchCols [ iCol ] = $ . extend ( { } , DataTable . models . oSearch ) ; } else { var oPre = oSettings . aoPreSearchCols [ iCol ] ; /* Don't require that the user must specify bRegex, bSmart or bCaseInsensitive */ if ( oPre . bRegex === undefined ) { oPre . bRegex = true ; } if ( oPre . bSmart === undefined ) { oPre . bSmart = true ; } if ( oPre . bCaseInsensitive === undefined ) { oPre . bCaseInsensitive = true ; } } /* Use the column options function to initialise classes etc */ _fnColumnOptions ( oSettings , iCol , null ) ; }
Add a column to the list used for the table with default values
@param {object} oSettings dataTables settings object
@param {node} nTh The th element for this column
@memberof DataTable#oApi
Add a column to the list used for the table with default values