DS Server

Javascript: SelectionFormField.getIsDropDownArrowVisible Method

Method|Introduced in 28.0

Description

Gets a value indicating whether a dropdown arrow is shown so that the user can select an item.

Syntax

<void> SelectionFormField.getIsDropDownArrowVisible(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives a value indicating whether a dropdown arrow is shown so that the user can select an item.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates SelectionFormField.getIsDropDownArrowVisible in a practical document-editing workflow. It gets a value indicating whether a dropdown arrow is shown so that the user can select an item.

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

function inspectIsDropDownArrowVisible(selectionFormField) {
    selectionFormField.getIsDropDownArrowVisible(
        function(result) {
            if (result) {
                console.log("get is drop down arrow visible is available.");
            } else {
                console.warn("get is drop down arrow visible is not available in the current document state.");
            }
        },
        onTxError
    );
}