public/javascripts/yui/datatable/datatable.js
function(elTable) {
    if(elTable) {
        // Destroy previous
        this._destroyColgroupEl();

        // Add COLs to DOCUMENT FRAGMENT
        var allCols = this._aColIds || [],
            allKeys = this._oColumnSet.keys,
            i = 0, len = allCols.length,
            elCol, oColumn,
            elFragment = document.createDocumentFragment(),
            elColTemplate = document.createElement("col");
    
        for(i=0,len=allKeys.length; i<len; i++) {
            oColumn = allKeys[i];
            elCol = elFragment.appendChild(elColTemplate.cloneNode(false));
        }
    
        // Create COLGROUP
        var elColgroup = elTable.insertBefore(document.createElement("colgroup"), elTable.firstChild);
        elColgroup.appendChild(elFragment);
        this._elColgroup = elColgroup;
    }
}
function(elTable) {
    if(elTable) {
        // Destroy previous
        this._destroyColgroupEl();

        // Add COLs to DOCUMENT FRAGMENT
        var allCols = this._aColIds || [],
            allKeys = this._oColumnSet.keys,
            i = 0, len = allCols.length,
            elCol, oColumn,
            elFragment = document.createDocumentFragment(),
            elColTemplate = document.createElement("col");
    
        for(i=0,len=allKeys.length; i<len; i++) {
            oColumn = allKeys[i];
            elCol = elFragment.appendChild(elColTemplate.cloneNode(false));
        }
    
        // Create COLGROUP
        var elColgroup = elTable.insertBefore(document.createElement("colgroup"), elTable.firstChild);
        elColgroup.appendChild(elFragment);
        this._elColgroup = elColgroup;
    }
}
function ( elTable ) { if ( elTable ) { // Destroy previous this . _destroyColgroupEl ( ) ; // Add COLs to DOCUMENT FRAGMENT var allCols = this . _aColIds || [ ] , allKeys = this . _oColumnSet . keys , i = 0 , len = allCols . length , elCol , oColumn , elFragment = document . createDocumentFragment ( ) , elColTemplate = document . createElement ( "col" ) ; for ( i = 0 , len = allKeys . length ; i < len ; i ++ ) { oColumn = allKeys [ i ] ; elCol = elFragment . appendChild ( elColTemplate . cloneNode ( false ) ) ; } // Create COLGROUP var elColgroup = elTable . insertBefore ( document . createElement ( "colgroup" ) , elTable . firstChild ) ; elColgroup . appendChild ( elFragment ) ; this . _elColgroup = elColgroup ; } }
Initializes COLGROUP and COL elements for managing minWidth.

@method _initColgroupEl
@param elTable {HTMLElement} TABLE element into which to create COLGROUP.
@private
Initializes COLGROUP and COL elements for managing minWidth .