SpreadJS Documentation
allowMove Method
The setting for whether to disable moving the floating object.
Gets or sets whether to disable moving the floating object.
Syntax
var instance = new GcSpread.Sheets.FloatingObject(name, x, y, width, height);
var returnValue; // Type: boolean
returnValue = instance.allowMove(value);
function allowMove( 
   value : boolean
) : boolean;

Parameters

value
The setting for whether to disable moving the floating object.

Return Value

The setting for whether to disable moving the floating object.
Example
This example prevents you from moving or resizing the 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.allowResize(false);
customFloatingObject.allowMove(false);
customFloatingObject.Content(btn);
activeSheet.addFloatingObject(customFloatingObject);
See Also

Reference

FloatingObject class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.