property index

(r/o) int32 index;

Typ

Zugriff

This property returns the index of the new selected item. This index is a zero-based row index. It is NOT a box index, so don't pass it to methods like getChildAt. Methods like getBoxAtRow on select box use this row index.
<comboBox on:select="onSelect();"/>

function onSelect()
{
    var eventObj = shell.currentEvent;
    if (eventObj)
    {
        var index = eventObj.index;
        var selectBox = eventObj.targetBox;
        if (index && selectBox)
        {
            var currentSelectedItem = selectBox.getBoxAtRow(index);
        }
    }
}