public/javascripts/yui/datatable/datatable.js
function(cell) {
    var elCell = this.getTdEl(cell);

    if(elCell) {
        // Make sure previous cell is unhighlighted
        if(this._elLastHighlightedTd) {
            this.unhighlightCell(this._elLastHighlightedTd);
        }

        var oRecord = this.getRecord(elCell);
        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
        Dom.addClass(elCell,DT.CLASS_HIGHLIGHTED);
        this._elLastHighlightedTd = elCell;
        this.fireEvent("cellHighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
        return;
    }
}
function(cell) {
    var elCell = this.getTdEl(cell);

    if(elCell) {
        // Make sure previous cell is unhighlighted
        if(this._elLastHighlightedTd) {
            this.unhighlightCell(this._elLastHighlightedTd);
        }

        var oRecord = this.getRecord(elCell);
        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
        Dom.addClass(elCell,DT.CLASS_HIGHLIGHTED);
        this._elLastHighlightedTd = elCell;
        this.fireEvent("cellHighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
        return;
    }
}
function ( cell ) { var elCell = this . getTdEl ( cell ) ; if ( elCell ) { // Make sure previous cell is unhighlighted if ( this . _elLastHighlightedTd ) { this . unhighlightCell ( this . _elLastHighlightedTd ) ; } var oRecord = this . getRecord ( elCell ) ; var sColumnKey = this . getColumn ( elCell . cellIndex ) . getKey ( ) ; Dom . addClass ( elCell , DT . CLASS_HIGHLIGHTED ) ; this . _elLastHighlightedTd = elCell ; this . fireEvent ( "cellHighlightEvent" , { record : oRecord , column : this . getColumn ( elCell . cellIndex ) , key : this . getColumn ( elCell . cellIndex ) . getKey ( ) , el : elCell } ) ; return ; } }
Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given cell.

@method highlightCell
@param cell {HTMLElement | String} DOM element reference or ID string.
Assigns the class YAHOO . widget . DataTable . CLASS_HIGHLIGHTED to the given cell .