DS Server

AddFootnoteCallback Function

Function|Introduced in 32.0

Description

Callback function for functions which add a footnote.

Syntax

function(<FootnoteCallbackData> response)

Examples

The following example demonstrates AddFootnoteCallback in a practical document-editing workflow. Callback function for functions which add a footnote.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function addFootnoteCallback(response) {
    console.log("response:", response);
}

TXTextControl.footnotes.add("Quarterly report", "PaymentTerms", 25, addFootnoteCallback, onTxError);