.. include:: /Includes.rst.txt .. _typo3fluid-fluid-cycle: ============================ cycle ViewHelper `` ============================ This ViewHelper cycles through the specified values. This can be often used to specify CSS classes for example. To achieve the "zebra class" effect in a loop you can also use the "iteration" argument of the **for** ViewHelper. Examples ======== These examples could also be achieved using the "iteration" argument of the ForViewHelper. Simple ------ :: {cycle} Output:: foobarbazfoo Alternating CSS class --------------------- :: Output:: .. _typo3fluid-fluid-cycle_arguments: Arguments ========= .. _cycle_values: values ------ :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` The array or object implementing \ArrayAccess (for example \SplObjectStorage) to iterated over .. _cycle_as: as -- :aspect:`DataType` mixed :aspect:`Required` true :aspect:`Description` The name of the iteration variable