Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
cleanup repeater documentation (spelling, dataSource options, code
Browse files Browse the repository at this point in the history
highlighting)
  • Loading branch information
swilliamset committed May 23, 2017
1 parent 087ab82 commit 06b3873
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions _includes/js/repeater.html
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ <h3 id="repeater-dataSource">Data Source</h3>
</div><!-- ./fu-table-responsive -->


<p>The <code>dataSource's callback</code> function should run after gathering the desired data for rendering. This function requires the code to pass a
<p>The <code>dataSource</code>'s <code>callback</code> function should run after gathering the desired data for rendering. This function requires the code to pass a
<code>data</code> object as an argument. Contents of the object will vary depending on the view
extension used. The attributes below include common expected attributes:</p>
<div class="table-responsive">
Expand All @@ -534,6 +534,11 @@ <h3 id="repeater-dataSource">Data Source</h3>
<code>.repeater-end</code> element.
</td>
</tr>
<tr>
<td>items</td>
<td>array</td>
<td>Array of objects representing the item data that will be displayed within the repeater. Use this value to populate the records in the <code>.repeater-list</code> element. The item objects can contain any number of attributes. Necessary attributes are defined by the <a href="/extensions.html">repeater extension</a>.</td>
</tr>
<tr>
<td>page</td>
<td>number</td>
Expand Down Expand Up @@ -604,7 +609,7 @@ <h3 id="repeater-usage-events">Events</h3>
</tr>
<tr>
<td>rendered.fu.repeater</td>
<td>Fires whenever the repeater has rendered data returned from the dataSource. Passses an <code>object</code> containing
<td>Fires whenever the repeater has rendered data returned from the dataSource. Passes an <code>object</code> containing
<code>data</code>, <code>options</code>, and <code>renderOptions</code>.</td>
</tr>
<tr>
Expand Down

0 comments on commit 06b3873

Please sign in to comment.