1

itemDestructionPolicy有两个可能的值:neverauto

我试图将值绑定到参数而不是写入值,但出现此错误:

itemDestructionPolicy属性值无效。

代码示例:

package com.hp.esb.skin.light.dropdownlist 
{
    public class ItemDestructionPolicy 
    {
        public static const NEVER:String = "never";
        public static const AUTO:String = "auto";
    }
}

下拉列表皮肤:

<s:PopUpAnchor id="popUp" displayPopUp.normal="false" displayPopUp.open="true" includeIn="open"
               itemDestructionPolicy="{hostComponent.destructionPolicy}"
               popUpPosition="below" popUpWidthMatchesAnchorWidth="true">

下拉列表:

[Bindable]
public var destructionPolicy:String = ItemDestructionPolicy.NEVER;
4

1 回答 1

1

itemDestructionPolicy 它是编译时属性,因此您无法绑定它。

于 2012-09-05T12:56:03.960 回答