src/api/v3/converter.js
function createWorksheetRequest(options) {
    options = options || {};

    // TODO: needs to handle overflow cases and create ore dynamically
    var rowCount = util.coerceNumber(options.rowCount || 5000);
    var colCount = util.coerceNumber(options.colCount || 50);

    options.rowCount = Math.max(rowCount, 10);
    options.colCount = Math.max(colCount, 10);

    var xw = createXMLWriter()
        .startElement('title')
        .text(options.title)
        .endElement()
        .startElement('gs:rowCount')
        .text(options.rowCount)
        .endElement()
        .startElement('gs:colCount')
        .text(options.colCount)
        .endElement()
        .endElement();

    return xw.toString();
}
function createWorksheetRequest(options) {
    options = options || {};

    // TODO: needs to handle overflow cases and create ore dynamically
    var rowCount = util.coerceNumber(options.rowCount || 5000);
    var colCount = util.coerceNumber(options.colCount || 50);

    options.rowCount = Math.max(rowCount, 10);
    options.colCount = Math.max(colCount, 10);

    var xw = createXMLWriter()
        .startElement('title')
        .text(options.title)
        .endElement()
        .startElement('gs:rowCount')
        .text(options.rowCount)
        .endElement()
        .startElement('gs:colCount')
        .text(options.colCount)
        .endElement()
        .endElement();

    return xw.toString();
}
function createWorksheetRequest ( options ) { options = options || { } ; // TODO: needs to handle overflow cases and create ore dynamically var rowCount = util . coerceNumber ( options . rowCount || 5000 ) ; var colCount = util . coerceNumber ( options . colCount || 50 ) ; options . rowCount = Math . max ( rowCount , 10 ) ; options . colCount = Math . max ( colCount , 10 ) ; var xw = createXMLWriter ( ) . startElement ( 'title' ) . text ( options . title ) . endElement ( ) . startElement ( 'gs:rowCount' ) . text ( options . rowCount ) . endElement ( ) . startElement ( 'gs:colCount' ) . text ( options . colCount ) . endElement ( ) . endElement ( ) ; return xw . toString ( ) ; }
Creates worksheet request payload.

@param options
@returns {*}
Creates worksheet request payload .