public/javascripts/yui/datatable/datatable.js
function(elTh, oColumn) {
    elTh.id = this.getId() + "-th-" + oColumn.getSanitizedKey(); // Needed for accessibility, getColumn by TH, and ColumnDD
    elTh.innerHTML = "";
    elTh.rowSpan = oColumn.getRowspan();
    elTh.colSpan = oColumn.getColspan();
    oColumn._elTh = elTh;
    
    var elThLiner = elTh.appendChild(document.createElement("div"));
    elThLiner.id = elTh.id + "-liner"; // Needed for resizer
    elThLiner.className = DT.CLASS_LINER;
    oColumn._elThLiner = elThLiner;
    
    var elThLabel = elThLiner.appendChild(document.createElement("span"));
    elThLabel.className = DT.CLASS_LABEL;    

    // Assign abbr attribute
    if(oColumn.abbr) {
        elTh.abbr = oColumn.abbr;
    }
    // Clear minWidth on hidden Columns
    if(oColumn.hidden) {
        this._clearMinWidth(oColumn);
    }
        
    elTh.className = this._getColumnClassNames(oColumn);
            
    // Set Column width...
    if(oColumn.width) {
        // Validate minWidth
        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
                oColumn.minWidth : oColumn.width;
        // ...for fallback cases
        if(DT._bDynStylesFallback) {
            elTh.firstChild.style.overflow = 'hidden';
            elTh.firstChild.style.width = nWidth + 'px';        
        }
        // ...for non fallback cases
        else {
            this._setColumnWidthDynStyles(oColumn, nWidth + 'px', 'hidden');
        }
    }

    this.formatTheadCell(elThLabel, oColumn, this.get("sortedBy"));
    oColumn._elThLabel = elThLabel;
}
function(elTh, oColumn) {
    elTh.id = this.getId() + "-th-" + oColumn.getSanitizedKey(); // Needed for accessibility, getColumn by TH, and ColumnDD
    elTh.innerHTML = "";
    elTh.rowSpan = oColumn.getRowspan();
    elTh.colSpan = oColumn.getColspan();
    oColumn._elTh = elTh;
    
    var elThLiner = elTh.appendChild(document.createElement("div"));
    elThLiner.id = elTh.id + "-liner"; // Needed for resizer
    elThLiner.className = DT.CLASS_LINER;
    oColumn._elThLiner = elThLiner;
    
    var elThLabel = elThLiner.appendChild(document.createElement("span"));
    elThLabel.className = DT.CLASS_LABEL;    

    // Assign abbr attribute
    if(oColumn.abbr) {
        elTh.abbr = oColumn.abbr;
    }
    // Clear minWidth on hidden Columns
    if(oColumn.hidden) {
        this._clearMinWidth(oColumn);
    }
        
    elTh.className = this._getColumnClassNames(oColumn);
            
    // Set Column width...
    if(oColumn.width) {
        // Validate minWidth
        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
                oColumn.minWidth : oColumn.width;
        // ...for fallback cases
        if(DT._bDynStylesFallback) {
            elTh.firstChild.style.overflow = 'hidden';
            elTh.firstChild.style.width = nWidth + 'px';        
        }
        // ...for non fallback cases
        else {
            this._setColumnWidthDynStyles(oColumn, nWidth + 'px', 'hidden');
        }
    }

    this.formatTheadCell(elThLabel, oColumn, this.get("sortedBy"));
    oColumn._elThLabel = elThLabel;
}
function ( elTh , oColumn ) { elTh . id = this . getId ( ) + "-th-" + oColumn . getSanitizedKey ( ) ; // Needed for accessibility, getColumn by TH, and ColumnDD elTh . innerHTML = "" ; elTh . rowSpan = oColumn . getRowspan ( ) ; elTh . colSpan = oColumn . getColspan ( ) ; oColumn . _elTh = elTh ; var elThLiner = elTh . appendChild ( document . createElement ( "div" ) ) ; elThLiner . id = elTh . id + "-liner" ; // Needed for resizer elThLiner . className = DT . CLASS_LINER ; oColumn . _elThLiner = elThLiner ; var elThLabel = elThLiner . appendChild ( document . createElement ( "span" ) ) ; elThLabel . className = DT . CLASS_LABEL ; // Assign abbr attribute if ( oColumn . abbr ) { elTh . abbr = oColumn . abbr ; } // Clear minWidth on hidden Columns if ( oColumn . hidden ) { this . _clearMinWidth ( oColumn ) ; } elTh . className = this . _getColumnClassNames ( oColumn ) ; // Set Column width... if ( oColumn . width ) { // Validate minWidth var nWidth = ( oColumn . minWidth && ( oColumn . width < oColumn . minWidth ) ) ? oColumn . minWidth : oColumn . width ; // ...for fallback cases if ( DT . _bDynStylesFallback ) { elTh . firstChild . style . overflow = 'hidden' ; elTh . firstChild . style . width = nWidth + 'px' ; } // ...for non fallback cases else { this . _setColumnWidthDynStyles ( oColumn , nWidth + 'px' , 'hidden' ) ; } } this . formatTheadCell ( elThLabel , oColumn , this . get ( "sortedBy" ) ) ; oColumn . _elThLabel = elThLabel ; }
Populates TH element as defined by Column.

@method _initThEl
@param elTh {HTMLElement} TH element reference.
@param oColumn {YAHOO.widget.Column} Column object.
@private
Populates TH element as defined by Column .