Feature #4458
Add CycleViewHelper
Status: | Resolved | Start date: | 2009-09-04 | |
---|---|---|---|---|
Priority: | Could have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 100% |
|
Category: | ViewHelpers | |||
Target version: | - | |||
Has patch: |
Description
A cycle view helper is useful for iterating through a predefined set of values in loops. E.g.:
<f:cycle values="{0: 'odd', 1: 'even'}" as="zebraClass"> <li class="{zebraClass}">{foo}</li> </f:cycle>
Patch follows.
Associated revisions
[~TASK] Fluid: tweaked exception that is thrown when trying to iterate through non-traversable objects in ForViewHelper
[~TASK] Fluid: fixed typo in ForViewHelperTest
[+FEATURE] Fluid: added CycleViewHelper. Resolves #4458
[+FEATURE] Fluid: added GroupedForViewHelper. Resolves #4460
[+TASK] Fluid: added test case for PaddingViewHelper. Relates to #4459
History
#1 Updated by Sebastian Kurfuerst almost 6 years ago
- Status changed from New to Accepted
#2 Updated by Bastian Waidelich almost 6 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r3190.