public/javascripts/yui/datatable/datatable.js
function(oArgs) {
    var elTarget = oArgs.target;

    // Validate target cell
    var elTargetCell = this.getTdEl(elTarget);
    if(elTargetCell) {
        var elTargetRow = this.getTrEl(elTargetCell);
        var oTargetRecord = this.getRecord(elTargetRow);
        var oTargetColumn = this.getColumn(elTargetCell);
        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};

        // Set anchor
        this._oAnchorCell = oTargetCell;

        // Select only target
        this.unselectAllCells();
        this.selectCell(oTargetCell);
    }
}
function(oArgs) {
    var elTarget = oArgs.target;

    // Validate target cell
    var elTargetCell = this.getTdEl(elTarget);
    if(elTargetCell) {
        var elTargetRow = this.getTrEl(elTargetCell);
        var oTargetRecord = this.getRecord(elTargetRow);
        var oTargetColumn = this.getColumn(elTargetCell);
        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};

        // Set anchor
        this._oAnchorCell = oTargetCell;

        // Select only target
        this.unselectAllCells();
        this.selectCell(oTargetCell);
    }
}
function ( oArgs ) { var elTarget = oArgs . target ; // Validate target cell var elTargetCell = this . getTdEl ( elTarget ) ; if ( elTargetCell ) { var elTargetRow = this . getTrEl ( elTargetCell ) ; var oTargetRecord = this . getRecord ( elTargetRow ) ; var oTargetColumn = this . getColumn ( elTargetCell ) ; var oTargetCell = { record : oTargetRecord , column : oTargetColumn } ; // Set anchor this . _oAnchorCell = oTargetCell ; // Select only target this . unselectAllCells ( ) ; this . selectCell ( oTargetCell ) ; } }
Determines selection behavior resulting from a mouse event when selection mode
is set to "singlecell".

@method _handleSingleCellSelectionByMouse
@param oArgs.event {HTMLEvent} Event object.
@param oArgs.target {HTMLElement} Target element.
@private
Determines selection behavior resulting from a mouse event when selection mode is set to singlecell .