The following example shows how you can change the direction of a FormItem container in Flex by setting thedirection property to "horizontal" or "vertical". layout="vertical" verticalAlign="middle" backgroundColor="white"> FormItem { labelStyleName: myFormItemLabelStyleName; } .myFormItemLabelStyleName { fontWeight: bold; } Flex" /> Flex" />
/** http://blog.flexexamples.com/2008/03/18/changing-t he-layout-direction-of-a-form-item-in-flex/ */ package { [Bindable] public class Icons { public function Icons() { } [Embed("assets/air_appicon-tn.gif")] public static var AIR_ICON:Class; [Embed("assets/fl_appicon-tn.gif")] public static var FLASH_ICON:Class; [Embed("assets/fl_player_appicon-tn.gif")] public static var FLASH_PLAYER_ICON:Class; [Embed("assets/fx_appicon-tn.gif")] public static var FLEX_ICON:Class; } }
/** http://blog.flexexamples.com/2008/03/18/changing-t he-layout-direction-of-a-form-item-in-flex/ */ package { [Bindable] public class Icons { public function Icons() { } [Embed("assets/air_appicon-tn.gif")] public static var AIR_ICON:Class; [Embed("assets/fl_appicon-tn.gif")] public static var FLASH_ICON:Class; [Embed("assets/fl_player_appicon-tn.gif")] public static var FLASH_PLAYER_ICON:Class; [Embed("assets/fx_appicon-tn.gif")] public static var FLEX_ICON:Class; } }
本文展示了如何通过设置direction属性将Flex布局中的FormItem容器的方向更改为水平或垂直,并详细介绍了相关的样式设置。
1560

被折叠的 条评论
为什么被折叠?



