Managing Sheet with APIs

SheetAPI.updateFloatings



updateFloatings( hd, floatings, callback, scope )

SheetAPI.updateFloatings method is used to update a list of floatings for the passed sheet object.

Parameters The handle information of the Sheet application your created.

An array of the floatings need to be updated, every item of this array will be an object. Each object includes the following items:

sheetThe defined sheet id of the cell you want to update, if ignore, the default is currently active tab id
nameThe name of floating to be updated.
ftypeDifferent type, such as: meg for merge type.
jsonjson object for the above type.
The callback function which will be called after the file is loaded. The scope for the callback function.

Example code


	var floatings = [];
	floatings.push( {sheet: _sheetId, name:"2015-01", ftype:"meg", json:"[1,3,1,6]"});
	floatings.push( {sheet: _sheetId, name:"2015-02", ftype:"meg", json:"[1,10,1,12]"});
    
	SHEET_API.updateFloatings(SHEET_API_HD, floatings);
    

The above method will update cells by merge.

{
        sheet:1,       // the defined sheet id of the cell you want to update
        name: "aha",   // the name of object
        ftype: "meg",  // floating type
        json:{         // json property contains specific information for the type
            
        }
}

To see detail definition for the cell properties, please go to page: Cell Properties Definition

 

 


Copyright © FeyaSoft Inc. All rights reserved.