SpreadJS Documentation
findFloatingObject Method
The name of the custom floating object to find.
Finds the custom floating object with the specified name.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: CustomFloatingObject
value = instance.findFloatingObject(name);
function findFloatingObject( 
   name : string
) : CustomFloatingObject;

Parameters

name
The name of the custom floating object to find.

Return Value

Returns the custom floating object.
Example
This example finds and hides the floating object.
<input type="button" id="button1" value="button1"/>

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);

$("#button1").click(function () {
var floating = activeSheet.findFloatingObject("f1");
floating.isVisible(false);
    });
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.