SpreadJS Documentation
CustomFloatingObject Constructor
The name of the custom floating object.
The x location of the custom floating object.
The y location of the custom floating object.
The width of the custom floating object.
The height of the custom floating object.
Represents a custom floating object.
Syntax
var instance = new GcSpread.Sheets.CustomFloatingObject(name, x, y, width, height);
function CustomFloatingObject( 
   name : string,
   x : number,
   y : number,
   width : number,
   height : number
) : CustomFloatingObject;

Parameters

name
The name of the custom floating object.
x
The x location of the custom floating object.
y
The y location of the custom floating object.
width
The width of the custom floating object.
height
The height of the custom floating object.
Example
This example creates a floating object.
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

CustomFloatingObject class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.