Javascript: TableCellBorder.getColor Method
Description
Gets the cell's border color.
Syntax
<void> TableCellBorder.getColor(<RequestColorStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the cell's border color. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TableCellBorder.getColor in a practical document-editing workflow. It gets the cell's border color.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectColor(tableCellBorder) {
tableCellBorder.getColor(
function(color) {
console.log("get color result:", color);
},
onTxError
);
}