Skip to content

wiz-ref-list

Use this component to display a vertically ordered list with optional markers for each item.

Key features:

  • Customizable items
    Each item can include a marker (mark) and corresponding text (text)
  • Marker visibility
    Options to show or hide markers using the isMark property
  • Direction control
    Supports both left-to-right (LTR) and right-to-left (RTL) text direction for localization
  • Spacing
    Flexible control over spacing between list items
  • Reusable template
    You can customize default styles and values with the itemTemplate property

Usage

Markup:

vue
<wiz-ref-list
  :items="[
    {
      mark: '<div style="line-height: 22px;text-align: left;"><span style="color: #519643; font-size: 20px;">•</span></div>',
      text: '<div style="line-height: 20px;text-align: left;">Item 1 description</div>',
    },
    {
      mark: '<div style="line-height: 22px;text-align: left;"><span style="color: #519643; font-size: 20px;">•</span></div>',
      text: '<div style="line-height: 20px;text-align: left;">Item 2 description</div>',
    },
  ]"
  :isMark="true"
  directionClass="left-to-right"
  :indent="20"
/>

Localization:

vue
<i18n>
    {
        "en": {
              "mark1": "•",
              "mark2": "•",
              "mark3": "•",
              "text1": "Article 1 »",
              "text2": "Article 2 »",
              "text3": "Article 3 »"
        }
    }
</i18n>

Customization

Markers can be customized for each list item:

vue
<wiz-ref-list
  :items="[
    {
      mark: '<div style="line-height: 22px;text-align: left;"><span style="color: #e74c3c; font-size: 20px;">*</span></div>',
      text: '<div style="line-height: 20px;text-align: left;">Customized Marker</div>',
    }
  ]"
  :isMark="true"
  directionClass="left-to-right"
/>

To use right-to-left direction, set directionClass to right-to-left:

vue
<wiz-ref-list
  :items="[
    {
      text: '<div style="line-height: 20px;text-align: right;">Right-to-Left Item</div>',
    }
  ]"
  directionClass="right-to-left"
/>

To create a plain list without markers, set isMark to false:

vue
<wiz-ref-list
  :items="[
    {
      text: '<div style="line-height: 20px;text-align: left;">No marker for this list item</div>',
    }
  ]"
  :isMark="false"
/>

Properties


The following properties are available:
PropertyTypeDefault valueDescription
itemsarray[...]Array of items, each containing "mark" and "text".

item


The following properties are available:
PropertyTypeDefault valueDescription
isMarkbooleantrueDefines marker's visibility.
markstring"•"List item marker symbol.
textstringArticle №List item text