Skip to content

m-list

Displays dynamic content from a CORS-enabled JSON source. Data is rendered using the specified template.

Attributes

AttributeDefault ValueDescription
srcRequired. URL of the data source for amp-list
data-titleDefines the name of the form when saving in Pixcraft
max-itemsMaximum number of items to display

Example

html
<m-list src="https://pixcraft.io/amp/get/123?key=mykey&format=json" max-items="3">
    <div>[[comment]]</div>
</m-list>