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

Toggle for tc:operation

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            T-no Tino Schnittke

            Dates

              Created:
              Updated:

              Slack

                Issue deployment