Skip to content

Commit

Permalink
More documentation on amp-list layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Voytenko committed Dec 18, 2015
1 parent 47f3ef7 commit e438c13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extensions/amp-list/amp-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ element will be shown if AMP Runtime cannot resize the `amp-list` element as req

An example:
```html
<amp-list src="https://data.com/articles.json?ref=CANONICAL_URL">
<amp-list src="https://data.com/articles.json?ref=CANONICAL_URL"
width=300 height=200 layout=responsive>
<template type="amp-mustache">
<div>
<amp-img src="{{imageUrl}}" width=50 height=50></amp-img>
Expand All @@ -67,6 +68,10 @@ An example:
}
```

The `amp-list` supports the following layouts: `fixed`, `fixed-height`,
`responsive`, `fill`. See [AMP HTML Layout System](../../spec/amp-html-layout.md)
for details.

#### Substitutions

The `amp-list` allows all standard URL variable substitutions.
Expand Down

0 comments on commit e438c13

Please sign in to comment.