Skip to content

wiz-list

wiz-list is designed to manage and render structured lists and collections of data. wiz-list is the primary container for the wiz-list-body and wiz-list-item components. Through a slot-based structure, you can create flexible list layouts incorporating headings, body sections, items, and footers.

wiz-list-body provides a slot for list items. It requires no direct properties—any data or related logic is provided by the wiz-list component or handled through the provideChildItems mixin.

wiz-list-item must always be nested under the wiz-list-body component. Every wiz-list-item represents a single list entry where you can further nest other components, like wiz-text or wiz-image.

Usage

Example usage
A fully configured wiz-list with custom indentations, mark properties, and bullet styling:

vue
<wiz-list
:itemIndent="10"
:markLineHeight="32"
:markSize="20"
listType="bulleted"
listSubtypeBullet="square"
>
  <wiz-list-body nested>
    <wiz-list-item nested>
      <wiz-text
        sealed="position rotation width height delete duplicate"
        :text="$t('listText1')"
      ></wiz-text>
    </wiz-list-item>
    <wiz-list-item nested>
      <wiz-text
        sealed="position rotation width height delete duplicate"
        :text="$t('listText2')"
      ></wiz-text>
    </wiz-list-item>
    <wiz-list-item nested>
      <wiz-text
        sealed="position rotation width height delete duplicate"
        :text="$t('listText3')"
      ></wiz-text>
    </wiz-list-item>
  </wiz-list-body>
</wiz-list>

Follow this example to nest wiz-list-body, wiz-list-item, and localized text strings within your wiz-list component.

Localization
Use the <i18n> section and include your translations inline as follows:

vue
<i18n>
    {
      "eng": {
        "listText1": "<span>Add item label 1</span>",
        "listText2": "<span>Add item label 2</span>",
        "listText3": "<span>Add item label 3</span>",
      }
    }
</i18n>

Properties


The following properties are available:
PropertyTypeDefault valueDescription
componentNamestringListThe text label displayed in eWizard Editor
customSymbolstringN/ACustom list item, if "listType=bulleted". Allowed value: CUSTOM
imageAltstringiconThe text displayed on the site layout if the image fails to load.
imageSizenumber16The card height in pixels.
imageSrcstringdefaultImageA path to the card image
itemIndentnumber4A list item bottom indent in pixels.
listSubtypeBulletstringcircleList item bullet format, if "listType=bulleted". Oneof "circle", "empty-circle", "diamond", "square", "check", "custom-value".
listSubtypeNumberstringarabicList item number format, if "listType=numbered". Oneof: "alphabet", "arabic", "roman".
listTypestringbulletedThe list type. Oneof: "bulleted", "numbered", "image".
markFillstring#0277BDA color for list item mark. Accepted: HEX, RGB, RGBA. Available for "listType=bulleted", "listType=numbered".
markLineHeightstring20A line height for list item mark in pixels. Available for "listType=bulleted", "listType=numbered".
markMinWidthnumber16List minimum width in pixels. Available for "listType=numbered".
markSizenumber12List font size in pixels. Available for "listType=bulleted", "listType=numbered".
markStartnumber1List starting number. Available for "listType=numbered".
markTextAlignstringcenterList item text alignment. Available for "listType=numbered". Oneof: "center", "left", "right", "justify".
textOffsetnumber8List item offset to the right in pixels.
topImageOffsetnumber2List top offset in pixels.