Javascript: FrameBase.getSizeable Method
Description
Gets whether the frame can be resized at run time with the built-in mouse interface.
Syntax
<void> FrameBase.getSizeable(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the current property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates FrameBase.getSizeable in a practical document-editing workflow. It gets whether the frame can be resized at run time with the built-in mouse interface.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectSizeable(frameBase) {
frameBase.getSizeable(
function(result) {
if (result) {
console.log("get sizeable is available.");
} else {
console.warn("get sizeable is not available in the current document state.");
}
},
onTxError
);
}