Ignore:
Timestamp:
Feb 7, 2011, 5:40:14 PM (13 years ago)
Author:
fnevgeny
Branch:
default
Phase:
public
Message:

Added getSelectedLabel().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/ui/SelectBox.js

    r146 r199  
    3131        },
    3232
     33        getSelectedLabel: function()
     34        {
     35            var items = this.getChildControl("list").getSelection();
     36            if (items && items.length == 1) {
     37                return items[0].getLabel();
     38            } else {
     39                return null;
     40            }
     41        },
     42
    3343        selectByValue: function(value)
    3444        {
Note: See TracChangeset for help on using the changeset viewer.