GcSpread.Sheets Namespace > Sheet type : addFloatingObject Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: any value = instance.addFloatingObject(item);
function addFloatingObject( item : CustomFloatingObject ) : any;
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);