0
如何從列表中選擇至少一個項目進行驗證,以便在應用程序的init()將selectedIndices設置爲NULL?如何驗證<mx:List組件>?
如何從列表中選擇至少一個項目進行驗證,以便在應用程序的init()將selectedIndices設置爲NULL?如何驗證<mx:List組件>?
下面的代碼可以幫助的人誰想要驗證列表像我想:
<mx:NumberValidator
id ="myListValidator"
trigger ="{myButton}"
triggerEvent ="click"
minValue ="0"
lowerThanMinError="Should I write an application to you for selecting atleast one of the option X-("
source ="{myList}"
property ="selectedIndex"
/>