SpreadJS Documentation
FloatingObject type
GC.Spread.Sheets.FloatingObjects Namespace : FloatingObject type
Represents a floating object.
Syntax
var instance = new GC.Spread.Sheets.FloatingObjects.FloatingObject(name, x, y, width, height);
function FloatingObject;
Example
//This example creates a floating object.
var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("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.floatingObjects.add(customFloatingObject);
Remarks
This is a base class that is intended for internal use.
Inheritance Hierarchy

Object
   GC.Spread.Sheets.FloatingObjects.FloatingObject
      GC.Spread.Sheets.Charts.Chart
      GC.Spread.Sheets.FloatingObjects.Picture

Constructors
 NameDescription
public ConstructorRepresents a floating object.  
Top
Fields
 NameDescription
public FieldRepresents the type name string used for supporting serialization.  
Top
Methods
 NameDescription
public MethodGets or sets whether to disable moving the floating object.  
public MethodGets or sets whether to disable resizing the floating object.  
public MethodGets a copy of the current content of the instance.  
public MethodGets or sets the content of the custom floating object.  
public MethodGets or sets whether the object moves when hiding or showing, resizing, or moving rows or columns.  
public MethodGets or sets whether the size of the object changes when hiding or showing, resizing, or moving rows or columns.  
public MethodGets or sets the end column index of the floating object position.  
public MethodGets or sets the offset relative to the end column of the floating object.  
public MethodGets or sets the end row index of the floating object position.  
public MethodGets or sets the offset relative to the end row of the floating object.  
public MethodGets or sets whether the position of the floating object is fixed. When fixedPosition is true, dynamicMove and dynamicSize are disabled.  
public MethodGets the dom host of the custom content.  
public MethodGets or sets the height of a floating object.  
public MethodGets or sets whether this floating object is locked.  
public MethodGets or sets whether this floating object is selected.  
public MethodGets or sets whether this floating object is visible.  
public MethodGets the name of the floating object.  
public MethodRefresh the content in floatingObject.The user should override this method to make their content synchronize with the floatingObject.  
public MethodGets or sets the starting column index of the floating object position.  
public MethodGets or sets the offset relative to the start column of the floating object.  
public MethodGets or sets the starting row index of the floating object position.  
public MethodGets or sets the offset relative to the start row of the floating object.  
public MethodGets or sets the width of a floating object.  
public MethodGets or sets the horizontal location of the floating object.  
public MethodGets or sets the vertical location of the floating object.  
Top
See Also

Reference

GC.Spread.Sheets.FloatingObjects Namespace
Creating Custom Floating Objects