public/javascripts/yui/datatable/datatable.js
function(elTh, oColumn) {
    elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility
    elTh.rowSpan = oColumn.getRowspan();
    elTh.colSpan = oColumn.getColspan();
    // Assign abbr attribute
    if(oColumn.abbr) {
        elTh.abbr = oColumn.abbr;
    }

    // TODO: strip links and form elements
    var sKey = oColumn.getKey();
    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
    elTh.innerHTML = sLabel;
}
function(elTh, oColumn) {
    elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility
    elTh.rowSpan = oColumn.getRowspan();
    elTh.colSpan = oColumn.getColspan();
    // Assign abbr attribute
    if(oColumn.abbr) {
        elTh.abbr = oColumn.abbr;
    }

    // TODO: strip links and form elements
    var sKey = oColumn.getKey();
    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
    elTh.innerHTML = sLabel;
}
function ( elTh , oColumn ) { elTh . id = this . getId ( ) + "-th-" + oColumn . getSanitizedKey ( ) ; // Needed for accessibility elTh . rowSpan = oColumn . getRowspan ( ) ; elTh . colSpan = oColumn . getColspan ( ) ; // Assign abbr attribute if ( oColumn . abbr ) { elTh . abbr = oColumn . abbr ; } // TODO: strip links and form elements var sKey = oColumn . getKey ( ) ; var sLabel = lang . isValue ( oColumn . label ) ? oColumn . label : sKey ; elTh . innerHTML = sLabel ; }
Populates TH element for the body THEAD element.

@method _initBdThEl
@param elTh {HTMLElement} TH element reference.
@param oColumn {YAHOO.widget.Column} Column object.
@private
Populates TH element for the body THEAD element .