TX Text Control .NET Server

RequestColorStringCallback Function

Function

Description

Callback function for requests expecting a CSS color string.

Syntax

function(<string> color)

Examples

The following example demonstrates RequestColorStringCallback in a practical document-editing workflow. Callback function for requests expecting a CSS color string.

function requestColorStringCallback(color) {
    console.log("color:", color);
}

TXTextControl.getBackColor(requestColorStringCallback);