[ 
https://issues.apache.org/jira/browse/FLEX-33998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13849424#comment-13849424
 ] 

Maurice Amsellem commented on FLEX-33998:
-----------------------------------------

100% Agree.
I am personally using visible and includeInLayout when only one or two items in 
the page must be conditionally displayed, and it's not worth defining states 
for that.


> visibleAndIncludeInLayout combined property would be helpful
> ------------------------------------------------------------
>
>                 Key: FLEX-33998
>                 URL: https://issues.apache.org/jira/browse/FLEX-33998
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: MXML Components
>    Affects Versions: Apache Flex 4.11.0
>            Reporter: Maurice Amsellem
>            Priority: Minor
>
> 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.
> {code}
> <s:HGroup>
>    <s:Button id="clearButton" visible="{model.canClear}" 
> includeInLayout="{model.canClear}"/>
> </s:HGroup>
> {code}
> by:
> {code}
> <s:HGroup>
>    <s:Button id="clearButton" visibleAndIncludeInLayout="{model.canClear}" />
> </s:HGroup>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to