0 Replies Latest reply on May 27, 2008 6:17 AM by Kto ToTaki

    ModalPanel with effects

    Kto ToTaki Newbie

      I would like to sprite up a modalPanel using effects. Appearing and closing of the panels should use one of rich:effects.
      I would™ like to open modalPanel using a button , like that :


      <a4j:commandButton onclick="Richfaces.showModalPanel('mpm');" value="Shoe Panel" >
       </a4j:commandButton>
      
       <rich:modalPanel id="mpm">
       <f:facet name="header"><h:outputText value="Modal Panel" /></f:facet>
       <f:facet name="controls"><h:graphicImage value="/pictures/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mpm')" />
       </f:facet>
      
      
       </rich:modalPanel>
      

      Where to place tags for starts effects like :
      <rich:effect event="onclick" for="mpm" type="Appear" params="delay:3.0,duration:1.5" />
      Or closing effecs like this :
      <rich:effect event="onclick" type="Opacity" params="duration:0.8, from:1.0, to:0.1" />