doc reference for getLength() of loop status-var

This commit is contained in:
Yoni Medoff 2015-08-04 19:35:50 -07:00
parent 36ba6763fd
commit ba7d41b28a

View File

@ -932,7 +932,8 @@ The `for` directive also supports a loop status variable in case you need to kno
```xml
<ul>
<li for="color in colors; status-var=loop">
${loop.getIndex()+1}) $color
$color
${loop.getIndex()+1}) of ${loop.getLength()}
<if test="loop.isFirst()"> - FIRST</if>
<if test="loop.isLast()"> - LAST</if>
</li>