src/js/common/clipboardUtil.js
function setDataInSpanRange(value, data, colspanRange, rowspanRange) {
    var startColspan = colspanRange[0];
    var endColspan = colspanRange[1];
    var startRowspan = rowspanRange[0];
    var endRowspan = rowspanRange[1];
    var cIndex, rIndex;

    for (rIndex = startRowspan; rIndex < endRowspan; rIndex += 1) {
        for (cIndex = startColspan; cIndex < endColspan; cIndex += 1) {
            data[rIndex][cIndex] = ((startRowspan === rIndex) &&
                                    (startColspan === cIndex)) ? value : ' ';
        }
    }
}
function setDataInSpanRange(value, data, colspanRange, rowspanRange) {
    var startColspan = colspanRange[0];
    var endColspan = colspanRange[1];
    var startRowspan = rowspanRange[0];
    var endRowspan = rowspanRange[1];
    var cIndex, rIndex;

    for (rIndex = startRowspan; rIndex < endRowspan; rIndex += 1) {
        for (cIndex = startColspan; cIndex < endColspan; cIndex += 1) {
            data[rIndex][cIndex] = ((startRowspan === rIndex) &&
                                    (startColspan === cIndex)) ? value : ' ';
        }
    }
}
function setDataInSpanRange ( value , data , colspanRange , rowspanRange ) { var startColspan = colspanRange [ 0 ] ; var endColspan = colspanRange [ 1 ] ; var startRowspan = rowspanRange [ 0 ] ; var endRowspan = rowspanRange [ 1 ] ; var cIndex , rIndex ; for ( rIndex = startRowspan ; rIndex < endRowspan ; rIndex += 1 ) { for ( cIndex = startColspan ; cIndex < endColspan ; cIndex += 1 ) { data [ rIndex ] [ cIndex ] = ( ( startRowspan === rIndex ) && ( startColspan === cIndex ) ) ? value : ' ' ; } } }
Set to the data matrix as colspan & rowspan range
@param {string} value - Text from getting td element
@param {array} data - Data matrix to set value
@param {array} colspanRange - colspan range (ex: [start,Index endIndex])
@param {array} rowspanRange - rowspan range (ex: [start,Index endIndex])
@private
Set to the data matrix as colspan & rowspan range