Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33998

visibleAndIncludeInLayout combined property would be helpful

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Apache Flex 4.11.0
    • None
    • MXML Components
    • None

    Description

      To show/hide a component inside a Group in MXML, you need to set both visible and includeInLayout properties, through bindings.
      It would be convenient (and probably faster) to have a combined visibleAndIncludeInLayout to set both properties at once.

      <s:HGroup>
         <s:Button id="clearButton" visible="{model.canClear}" includeInLayout="{model.canClear}"/>
      </s:HGroup>
      

      by:

      <s:HGroup>
         <s:Button id="clearButton" visibleAndIncludeInLayout="{model.canClear}" />
      </s:HGroup>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mamsellem Maurice Amsellem
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: