Skip to content

Instantly share code, notes, and snippets.

@jasperboyd
Last active November 13, 2015 22:06
Show Gist options
  • Save jasperboyd/70b7ad41814a96c316bf to your computer and use it in GitHub Desktop.
Save jasperboyd/70b7ad41814a96c316bf to your computer and use it in GitHub Desktop.
sw-listing-display example
<div ng-controller="tscontrol as controllernamethatyoupick">
<!-- use data-entity="product" for a standard listing -->
<sw-listing-display ng-if="$root.loadedResourceBundle"
data-showsearch="true"
data-collection-config="controllernamethatyoupick.collectionConfig"
data-record-edit-action="admin:entity.editproduct"
data-record-detail-action="admin:entity.detailproduct">
<sw-listing-column data-property-identifier="productType.productTypeName" />
<sw-listing-column data-property-identifier="brand.brandName" />
<sw-listing-column tdclass="primary" data-property-identifier="productName" />
<sw-listing-column data-property-identifier="productCode" />
<sw-listing-column data-property-identifier="defaultSku.price" />
<sw-listing-column data-property-identifier="activeFlag" />
<sw-listing-column data-property-identifier="publishedFlag" />
<sw-listing-column data-property-identifier="calculatedQATS" />
</sw-listing-display>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment