Multidimensionales Array

Code

<ul>
 	<f:groupedFor each="{0: {name: 'apple', color: 'green'}, 1: {name: 'cherry', color: 'red'}, 2: {name: 'banana', color: 'yellow'}, 3: {name: 'strawberry', color: 'red'}}" as="fruitsOfThisColor" groupBy="color" groupKey="color">
  <li> {color} fruits:
   <ul>
    <f:for each="{fruitsOfThisColor}" as="fruit" key="label">
     <li>{label}: {fruit.name}</li>
    </f:for>
   </ul>
  </li>
 	</f:groupedFor>
</ul>
Hast du einen Fehler gefunden? Schreibe an: http://www.extbasefluid.com/anfrage/
comments powered by Disqus