Javascript: ListFormat.getTextBeforeNumber Method
Description
Gets the text that is displayed in front of the number in a numbered list.
Syntax
<void> ListFormat.getTextBeforeNumber(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the text that is displayed in front of the number in a numbered list. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ListFormat.getTextBeforeNumber in a practical document-editing workflow. It gets the text that is displayed in front of the number in a numbered list.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.listFormat.getTextBeforeNumber(
function(result) {
console.log("get text before number result:", result);
},
onTxError
);