Skip to content

wiz-rating

wiz-rating displays a horizontally aligned set of clickable image-based rating items. It's particularly useful for gathering quick user feedback, such as in email surveys or ratings.

Features:

  • Dynamic rating items: displays rating images dynamically using the items property. Each item can be customized with an image, link, and text.
  • Default items: provides a default set of five rating elements.
  • Responsive design: adapts to different screen sizes for optimal display.

Usage

Markup:

<wiz-rating :items="ratingItems"></wiz-rating>

Localization:

<i18n>
    {
        "en": {
              "alt1": "Star",
              "alt2": "Star",
              "alt3": "Star",
              "alt4": "Star",
              "alt5": "Star"
        }
    }
</i18n>

Properties


The following properties are available:
PropertyTypeDefault valueDescription
componentNamestringRatingThe text label displayed in eWizard Editor
itemsarray[...]The rating items array. Every item includes the following properties: "link", "image", "alt".

item


The following properties are available:
PropertyTypeDefault valueDescription
altstringStarThe text displayed in the email if the image fails to load.
imagestring./media/images/default-image.pngA path to the image for the rating item.
linkstringhttps://viseven.com/A URL or link target for the rating item.