« Previous | Next » 

Revision 18f28e0a

ID18f28e0a73d831ef502e63746f4cb5f815c6f1eb
Parent 3ee880c9
Child 36e7bab9

Added by Bastian Waidelich almost 7 years ago

[FEATURE] Allow usage of "else" argument with child nodes in AbstractConditionViewHelper

This feature allows for mixing usage of arguments and child node
rendering for all ``AbstractConditionViewHelpers``. This allows for
writing::

<f:if condition="{products}" else="There are no products">
<f:for each="{products}">
<!-- ... -->
</f:for>
</f:if>

To achieve what previously had to be written as::

<f:if condition="{products}">
<f:then>
<f:for each="{products}">
<!-- ... -->
</f:for>
</f:then>
<f:else>
There are no products
</f:else>
</f:if>

Change-Id: I2cb6578be557892b63f570aaa710e7f605e2e322
Releases: master
Resolves: FLOW-200

  • added
  • modified
  • copied
  • renamed
  • deleted