当我在flex中使用Form和FormItem时,我发现s:FormItem无法自动放置其标签位置,并且不能使用direction,horizentalGap属性,但是adobe建议我们使用spark.components.FormItem代替mx。 FormItem,那么您能告诉我这两个类的不同之处,并告诉我为什么spark.components.FormItem.Thanks中不能使用诸如方向,horizentalGap之类的属性。
Well, the mx FormItem is "legacy" code and was built using the MX / Halo component architecture .
The Spark FormItem was built using the new Spark component architecture . The Flex Framework Components built in each respective architecture are not identical.
If you want to specify a "Direction" in the Spark FormItem you could try setting it's layout property to either a horizontal or vertical layout .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.