SpreadJS Documentation
addFloatingObject Method
The custom floating object.
Adds a custom floating object to the sheet.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.addFloatingObject(item);
function addFloatingObject( 
   item : CustomFloatingObject
) : any;

Parameters

item
The custom floating object.
Example
This example adds a floating object to the sheet.
var customFloatingObject = new GcSpread.Sheets.CustomFloatingObject("f1", 10, 10, 60, 64);
var btn = document.createElement('button');
btn.style.width = "60px";
btn.style.height = "30px";
btn.innerText = "button";
customFloatingObject.Content(btn);
activeSheet.addFloatingObject(customFloatingObject);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.