1 Reply Latest reply on May 16, 2012 6:52 PM by gonzalad

    RF4 : dataScroller howto right align ?

    gonzalad

      Hi,

       

      What is the best way to align rich:dataScroller on the right ?

       

      With RF 3.x, you just have to use attribute align="right".

      With RF 4.x, I'm wrapping dataScroller with an additional <div> like this :

       

      <div style="text-align: right">
        <rich:dataScroller id="chargerScr" boundaryControls="auto" 
            renderIfSinglePage="false" for="cDt"
            align="right" 
            page="#{rechercherChargeClienteleAction.pageNumber}"
            scrollListener="#{rechercherChargeClienteleAction.scroll}"
            styleClass="pagination-classic" maxPages="5"
            stepControls="auto" fastControls="hide" render="chargerScr,cF,msg"/>
      </div>
      

       

      Is there an easier way ?

       

      Thanks !

       

      P.S. in the absolute, generating HTML markup like this would have been ideal I think (similar to bootstrap pagination) :

      <div class="rf-ds"><ul><li>...</li><li>...</li><li>...</li></ul></div>