RequestHeaderFooterTypeCallback Function
Description
Callback function for requesting a type of header or footer.
Syntax
function(<HeaderFooterType> headerFooterType)Examples
The following example demonstrates RequestHeaderFooterTypeCallback in a practical document-editing workflow. Callback function for requesting a type of header or footer.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestHeaderFooterTypeCallback(headerFooterType) {
console.log("header footer type:", headerFooterType);
}
function useRequestHeaderFooterTypeCallback(headerFooter) {
headerFooter.getType(requestHeaderFooterTypeCallback, onTxError);
}