public/javascripts/yui/datatable/datatable.js
function (oColumn, elTd, index, isLast) {
    var oColumnSet = this._oColumnSet;
    
    // Set the TD's accessibility headers
    var allHeaders = oColumnSet.headers,
        allColHeaders = allHeaders[index],
        sTdHeaders = "",
        sHeader;
    for(var j=0, headersLen=allColHeaders.length; j < headersLen; j++) {
        sHeader = this._sId + "-th-" + allColHeaders[j] + ' ';
        sTdHeaders += sHeader;
    }
    elTd.headers = sTdHeaders;
    
    // Class the TD element
    var aAddClasses = [];
    if(index === 0) {
        aAddClasses[aAddClasses.length] = DT.CLASS_FIRST;
    }
    if(isLast) {
        aAddClasses[aAddClasses.length] = DT.CLASS_LAST;
    }
    elTd.className = this._getColumnClassNames(oColumn, aAddClasses);

    // Class the liner element
    elTd.firstChild.className = DT.CLASS_LINER;

    // Set Column width for fallback cases
    if(oColumn.width && DT._bDynStylesFallback) {
        // Validate minWidth
        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
                oColumn.minWidth : oColumn.width;
        elTd.firstChild.style.overflow = 'hidden';
        elTd.firstChild.style.width = nWidth + 'px';
    }
    
    return elTd;
}
function (oColumn, elTd, index, isLast) {
    var oColumnSet = this._oColumnSet;
    
    // Set the TD's accessibility headers
    var allHeaders = oColumnSet.headers,
        allColHeaders = allHeaders[index],
        sTdHeaders = "",
        sHeader;
    for(var j=0, headersLen=allColHeaders.length; j < headersLen; j++) {
        sHeader = this._sId + "-th-" + allColHeaders[j] + ' ';
        sTdHeaders += sHeader;
    }
    elTd.headers = sTdHeaders;
    
    // Class the TD element
    var aAddClasses = [];
    if(index === 0) {
        aAddClasses[aAddClasses.length] = DT.CLASS_FIRST;
    }
    if(isLast) {
        aAddClasses[aAddClasses.length] = DT.CLASS_LAST;
    }
    elTd.className = this._getColumnClassNames(oColumn, aAddClasses);

    // Class the liner element
    elTd.firstChild.className = DT.CLASS_LINER;

    // Set Column width for fallback cases
    if(oColumn.width && DT._bDynStylesFallback) {
        // Validate minWidth
        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
                oColumn.minWidth : oColumn.width;
        elTd.firstChild.style.overflow = 'hidden';
        elTd.firstChild.style.width = nWidth + 'px';
    }
    
    return elTd;
}
function ( oColumn , elTd , index , isLast ) { var oColumnSet = this . _oColumnSet ; // Set the TD's accessibility headers var allHeaders = oColumnSet . headers , allColHeaders = allHeaders [ index ] , sTdHeaders = "" , sHeader ; for ( var j = 0 , headersLen = allColHeaders . length ; j < headersLen ; j ++ ) { sHeader = this . _sId + "-th-" + allColHeaders [ j ] + ' ' ; sTdHeaders += sHeader ; } elTd . headers = sTdHeaders ; // Class the TD element var aAddClasses = [ ] ; if ( index === 0 ) { aAddClasses [ aAddClasses . length ] = DT . CLASS_FIRST ; } if ( isLast ) { aAddClasses [ aAddClasses . length ] = DT . CLASS_LAST ; } elTd . className = this . _getColumnClassNames ( oColumn , aAddClasses ) ; // Class the liner element elTd . firstChild . className = DT . CLASS_LINER ; // Set Column width for fallback cases if ( oColumn . width && DT . _bDynStylesFallback ) { // Validate minWidth var nWidth = ( oColumn . minWidth && ( oColumn . width < oColumn . minWidth ) ) ? oColumn . minWidth : oColumn . width ; elTd . firstChild . style . overflow = 'hidden' ; elTd . firstChild . style . width = nWidth + 'px' ; } return elTd ; }
Formats a basic TD element.
@method _formatTdEl
@param oColumn {YAHOO.widget.Column} Associated Column instance.
@param elTd {HTMLElement} An unformatted TD element.
@param index {Number} Column key index.
@param isLast {Boolean} True if Column is last key of the ColumnSet.
@return {HTMLElement} A formatted TD element.
@private
Formats a basic TD element .