Javascript: HeaderFooter.activate Method
Description
Activates the this header or footer.
Syntax
<void> HeaderFooter.activate(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives whether the activation was succesful. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates HeaderFooter.activate in a practical document-editing workflow. It activates the this header or footer.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function activate(headerFooter) {
headerFooter.activate(
function(result) {
if (result) {
console.log("activate is available.");
} else {
console.warn("activate is not available in the current document state.");
}
},
onTxError
);
}