itemDestructionPolicy
有两个可能的值:never
和auto
我试图将值绑定到参数而不是写入值,但出现此错误:
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;