0
하나의 열을 편집 할 수있는 플렉스 테이블을 만들고 있습니다. 사용자의 입력을 특정 문자로 제한하려고합니다. 다음 코드는 Could not resolve <s:itemEditor> to a component implementation
오류를 제공합니다. 누구든지이 문제를 해결하는 방법을 알고 있습니까? 다음과 같이 MyColumn 클래스와 기능입니다플렉스 : 스파크 테이블에서 TextInput restrict를 구현하면 오류가 발생합니다.
...
<fx:Array>
<supportClasses:MyColumn ... />
<supportClasses:MyColumn editable="true" ...>
<s:itemEditor>
<fx:Component>
<s:TextInput restrict="0-9a-zA-Z"/>
</fx:Component>
</s:itemEditor>
</supportClasses:MyColumn>
<supportClasses:MyColumn ... />
...
</fx:Array>
...
:
import spark.components.gridClasses.GridColumn;
public class MyColumn extends GridColumn
{
...
public function MyColumn(headerText:String="header" width:Number=100 ...)
{
this.headerText=headerText;
...
}
}
@ggkmath Ah. 나는 내가 당신을위한 해결책을 가지고 있다고 생각합니다. 내 편집 된 답변을 살펴보십시오. –
완벽하게 작동합니다. :-) – ggkmath