Combo.OpenOnKeyDown

OpenOnKeyDown: Boolean

Description

The OpenOnKeyDown property determines whether component panel could be opened on key click.

Comments

Available values:

Use JSON or the setOpenOnKeyDown method to set the property value, and the getOpenOnKeyDown method to get the property value.

Example

To execute the example, the HTML page must contain links to PP.js script file and to PP.css styles file, in the <body> tag of the HTML page of the <div> item with comboBox identifier. In the onload event of the <body> tag it is necessary to specify the call of the createComboBox() function. Add combo box on the page and forbid to open component panel on key clicking:

var comboBox; // Combo box
function createComboBox() {
    // Create input editor with drop-down panel
    comboBox = new PP.Ui.ComboBox({
        EnableEdit: true,
        ListBox: {
            Items: [{
                Content: "I"
            }, {
                Content: "II"
            }, {
                Content: "III"
            }, {
                Content: "IV"
            }, {
                Content: "V"
            }]
        },
        OpenOnKeyDown: false,
        // Set parent item
        ParentNode: "comboBox",
        // Set width
        Width: 100
    });
}

As a result of example executing combo box is created. On inputting the value using keyboard, the component panel is not opened.

See also:

Combo