Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-1971

Toggle for tc:operation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.4.0, 5.0.0
    • 5.x
    • Demo, Facelets
    • None

    Description

       

       

      It would be nice to have a toggle option using tc:operation to show or hide a panel with buttons.

       

      // Example:
      ...
      <tc:button label="Hide" immediate="false" rendered="#{cc.attrs.collapsible}" omit="true">
         <tc:operation name="hide" for="panel"/>
      </tc:button>
      <tc:button label="Show" immediate="false" rendered="#{cc.attrs.collapsible}" omit="true">
         <tc:operation name="show" for="panel"/>
      </tc:button>
      
      <tc:panel collapsedMode="hidden" collapsed="true" id="panel">
      ...

      With the toggle option one could use only one button instead of two.

       

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            T-no Tino Schnittke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: