View Helpers
resetCycle()
Signature
Section titled “Signature”resetCycle() — returns void
Available in: controller
Category: Miscellaneous Functions
Description
Section titled “Description”Resets a cycle so that it starts from the first list value the next time it is called.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | no | default | The name of the cycle to reset. |
Examples
Section titled “Examples”// alternating row colors and shrinking emphasis
<cfoutput query="employees" group="departmentId">
<div class="#cycle(values="even,odd", name="row")#">
<ul>
<cfoutput>
rank = cycle(values="president,vice-president,director,manager,specialist,intern", name="position")>
<li class="#rank#">#categories.categoryName#</li>
resetCycle("emphasis")>
</cfoutput>
</ul>
</div>
</cfoutput>