Bob
Bob

Reputation: 1

whats different between s:FormItem and mx:FormItem in flex4

When i use the the Form and FormItem in flex,I found the s:FormItem can't place its label position automatically and can't use direction, horizentalGap properties, but adobe recommended us to use spark.components.FormItem instead of mx.containers。FormItem,so can you teel me the different about these two class,and tell me why the properties such as direction, horizentalGap can't use in spark.components.FormItem.Thanks.

Upvotes: 0

Views: 206

Answers (1)

JeffryHouser
JeffryHouser

Reputation: 39408

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.

Upvotes: 1

Related Questions