Skip to content

Commit

Permalink
Fix amp-list event and action documentation (#32482)
Browse files Browse the repository at this point in the history
Some events are incorrectly located in the actions section and vice
versa.
  • Loading branch information
zhangsu committed Feb 8, 2021
1 parent 8da9698 commit 7e90a4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions spec/amp-actions-and-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ event.index</pre></td>
<th width="35%">Description</th>
<th width="40%">Data</th>
</tr>
<tr>
<td><code>changeToLayoutContainer</code></td>
<td>Update's <code>amp-list</code>'s layout to <code>layout="CONTAINTER"</code> to allow <a href="../extensions/amp-list/amp-list.md#dynamic-resizing">dynamic resizing</a>.</td>
</tr>
<tr>
<td><code>fetch-error</code>(low-trust)</td>
<td>Fired when fetching data fails.</td>
Expand Down Expand Up @@ -542,6 +538,10 @@ event.response</pre></td>
<th>Action</th>
<th>Description</th>
</tr>
<tr>
<td><code>changeToLayoutContainer</code></td>
<td>Update's <code>amp-list</code>'s layout to <code>layout="CONTAINTER"</code> to allow <a href="../extensions/amp-list/amp-list.md#dynamic-resizing">dynamic resizing</a>.</td>
</tr>
<tr>
<td><code>refresh</code></td>
<td>Refreshes data from the <code>src</code> and re-renders the list.</td>
Expand Down
10 changes: 4 additions & 6 deletions spec/amp-email-actions-and-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,18 +438,16 @@ event.response</pre></td>

<table>
<tr>
<th width="25%">Event</th>
<th width="35%">Description</th>
<th width="40%">Data</th>
<th>Action</th>
<th>Description</th>
</tr>
<tr>
<td><code>changeToLayoutContainer</code></td>
<td>Update's <code>amp-list</code>'s layout to <code>layout="CONTAINTER"</code> to allow <a href="../extensions/amp-list/amp-list.md#dynamic-resizing">dynamic resizing</a>.</td>
</tr>
<tr>
<td><code>fetch-error</code>(low-trust)</td>
<td>Fired when fetching data fails.</td>
<td>None</td>
<td><code>refresh</code></td>
<td>Refreshes data from the <code>src</code> and re-renders the list.</td>
</tr>
</table>

Expand Down

0 comments on commit 7e90a4f

Please sign in to comment.