src/api/v3/converter.js
function createFieldRequest(columnName, position) {

    if (util.isNaN(position) || position <= 0) {
        throw new TypeError('Position should be a number which is higher than one!');
    }

    var xw = createXMLWriter();

    xw = xw.startElement('gs:cell')
        .writeAttribute('row', 1)
        .writeAttribute('col', position)
        .writeAttribute('inputValue', columnName)
        .endElement();

    return xw.endElement().toString();
}
function createFieldRequest(columnName, position) {

    if (util.isNaN(position) || position <= 0) {
        throw new TypeError('Position should be a number which is higher than one!');
    }

    var xw = createXMLWriter();

    xw = xw.startElement('gs:cell')
        .writeAttribute('row', 1)
        .writeAttribute('col', position)
        .writeAttribute('inputValue', columnName)
        .endElement();

    return xw.endElement().toString();
}
function createFieldRequest ( columnName , position ) { if ( util . isNaN ( position ) || position <= 0 ) { throw new TypeError ( 'Position should be a number which is higher than one!' ) ; } var xw = createXMLWriter ( ) ; xw = xw . startElement ( 'gs:cell' ) . writeAttribute ( 'row' , 1 ) . writeAttribute ( 'col' , position ) . writeAttribute ( 'inputValue' , columnName ) . endElement ( ) ; return xw . endElement ( ) . toString ( ) ; }
Creates the 'create column' request payload

@param columnName
@param position

@returns {*}
Creates the create column request payload