Javascript: TableCellFormat.setTextType Method
Description
Sets the table cell's text type.
Syntax
<void> TableCellFormat.setTextType(<TextType> textType, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| textType | The cell's text type. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TableCellFormat.setTextType in a practical document-editing workflow. It sets the table cell's text type.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureTextType(tableCellFormat) {
tableCellFormat.setTextType(
TXTextControl.TextType.Text,
function() {
console.log("set text type completed.");
},
onTxError
);
}