Helpcenter +918010117117 //d2pyicwmjx3wii.cloudfront.net/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India

ms.brands

This widget provides the brands of the product for a particular website. 


Attributes

page_size This attribute is used to define the page size i.e the number of records that you want to show on a single page.
sortfields This attribute is used to sort the record on the basis of any field. Example: ms-data-sortfields='name'
resolve This attribute is used to resolve the data from a particular entity from the field whose typeof is select.

Variables

brands
Returns an array containing all the brands in the store. Each brand contains a series of details such as name, alias and etc.
name Return the name of the brand.
alias Returns the alias of the brand.
about Returns a text which can be about the brand.
description Returns the description of the brand (if available).
image Returns a url for the image.

Examples

Display all brands

<div ms-widget="ms.brands">
    <div ng-if="brands.length">
        <h3 ng-repeat="brand in brands">
            <a ng-href="/brand/{{brand.alias}}" title="{{brand.name}}">
                {{brand.name}}
            </a>
        </h3>
    </div>
    <div ng-if="!brands.length">
        <p>No brand exist!</p>
    </div>
</div>