Helpcenter +918010117117 https://cdn1.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" support@storehippo.com 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_sizeThis attribute is used to define the page size i.e the number of records that you want to show on a single page.
sortfieldsThis attribute is used to sort the record on the basis of any field. Example: ms-data-sortfields='name'
resolveThis 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.
nameReturn the name of the brand.
aliasReturns the alias of the brand.
aboutReturns a text which can be about the brand.
descriptionReturns the description of the brand (if available).
imageReturns 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>