简体   繁体   English

如何在水平方向上添加导航器(左右) <s:List> 在Flex Spark中

[英]How to add navigators (left & right) on Horizontal <s:List> in Flex Spark

My question is about List in Flex Spark (in Flash Builder). 我的问题是有关Flex Spark(在Flash Builder中)的列表。 I was referring to Flex Horizontal List to create my Horizontal List using - 我指的是Flex水平列表 ,使用-创建我的水平列表

<s:List id="myList">
    <s:layout>
        <s:HorizontalLayout />
    </s:layout>
</s:List>

I now want to add navigators ('<' & '>') on the sides on this Horizontal list upon clicking which list should scroll from left to right or vice versa. 现在,我要单击此列表应从左向右滚动或反之亦然的列表,在此“水平”列表的侧面添加导航器('<'和'>')。 I have just started with Flex and not sure how I can achieve this. 我刚开始使用Flex,但不确定如何实现。 Thanks ! 谢谢 !

Just define a width on the List, and it will include scroll bars automatically: 只需在列表上定义一个宽度,它将自动包含滚动条:

<s:List id="myList" width="200">
    <s:layout>
        <s:HorizontalLayout />
    </s:layout>
</s:List>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM