SpreadJS Documentation
getFloatingObjectZIndex Method
The name of the floating object.
Gets the z-index of the floating object.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: number
value = instance.getFloatingObjectZIndex(name);
function getFloatingObjectZIndex( 
   name : string
) : number;

Parameters

name
The name of the floating object.

Return Value

The z-index of the floating object.
Example
This example uses the getFloatingObjectZIndex method.
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);
var customFloatingObject1 = new GcSpread.Sheets.CustomFloatingObject("f2", 10, 30, 60, 64);
var btn1 = document.createElement('button');
btn1.style.width = "50px";
btn1.style.height = "20px";
btn1.innerText = "test";
customFloatingObject1.Content(btn1);
activeSheet.addFloatingObject(customFloatingObject1);
alert(activeSheet.getFloatingObjectZIndex("f1"));
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.