Javascript: PageBorder.setSurroundFooter Method
Description
Sets the whether the page border surrounds the section's footer.
Syntax
<void> PageBorder.setSurroundFooter(<boolean> surroundFooter, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| surroundFooter | Specifies whether the page border surrounds the section's footer. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates PageBorder.setSurroundFooter in a practical document-editing workflow. It sets the whether the page border surrounds the section's footer.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureSurroundFooter(pageBorder) {
pageBorder.setSurroundFooter(
true,
function() {
console.log("set surround footer completed.");
},
onTxError
);
}