1 Reply Latest reply: Apr 3, 2013 8:40 AM by fsoender RSS

    Spinnerlist with button click

    fsoender Community Member

      Do anyone have a sample code of how to open a spinnerlist with a button click?

        • 1. Re: Spinnerlist with button click
          fsoender Community Member

          I got it myself, here is the code:

           

           

          <s:CalloutButton x="400" y="100" label="OpenSpinnerList" close="calloutbutton_closeHandler(event)" color="#FFFFFF">

                       <s:calloutLayout>

                         <s:VerticalLayout/>

                           </s:calloutLayout>

                                <s:calloutContent>

                                     <s:SpinnerListContainer x="22" y="85" width="135" height="110">

                                         <s:SpinnerList id="SpinnerList" width="270" fontWeight="bold" labelField="data" selectedIndex="1">

                                              <s:dataProvider>                      

                                                   <s:ArrayList>

                                                          <fx:Object data="  "></fx:Object>

                                                          <fx:Object data="1"></fx:Object>

                                                          <fx:Object data="2"></fx:Object>

                                                          <fx:Object data="3"></fx:Object>

                                                          <fx:Object data="4"></fx:Object>

                                                          <fx:Object data="5"></fx:Object>                               

                                                   </s:ArrayList>

                                            </s:dataProvider>

                                     </s:SpinnerList>

                               </s:SpinnerListContainer>

                        </s:calloutContent>

                 </s:CalloutButton>