Skip to content

wiz-menu

wiz-menu is the navigation menu component for e-Detailer slides.

Key features:

  • Configurable positioning
  • Customizable active chapter styling
  • Integrated sitemap and references access

wiz-menu includes:

  • Visual structure: navigation items, active indicators, sitemap button, references button
  • Spatial configuration: supports horizontal and vertical layouts with various positioning options
  • Interactive elements: chapter navigation, sitemap toggle, references toggle

Usage

You can add wiz-menu to your slide and change its properties.

To add wiz-menu to individual slides, include it in ./slides/default/index.vue of your required slide:

html
<!--./slides/default/index.vue -->

<template>
<wiz-slide>
    <wiz-menu id="wiz-menu-id" class="default" :active-chapter-text-with-styles="$t('wiz_menu_id2')" :inactive-chapter-text-with-styles="$t('wiz_menu_id3')"></wiz-menu>
</wiz-slide>
</template>

To add wiz-menu to all slides, include it in ./App.vue:

html
<!-- ./App.vue -->

<template>
<wiz-root>
    <wiz-viewer>
    <wiz-menu
        id="menu"
        ref="menu"
        :home-button-icon="$theme.images.components.homeIcon"
        :pi-button-icon="$theme.images.components.piIcon"
        :sitemap-button-icon="$theme.images.components.sitemapIcon"
        :refs-button-icon="$theme.images.components.refIcon"
        :pi-button-pdf="piPDF"
        :logo-icon="$theme.images.components.menuLogo"
        :active-arrows-color="activeArrowColor"
        :inactive-arrows-color="'#ffffff'"
        :active-chapter-text-with-styles="{
        light: $t('menuActiveChapterTextWithStylesForLightTheme'),
        dark: $t('menuActiveChapterTextWithStylesForDarkTheme')
        }[currentTheme]"
        :inactive-chapter-text-with-styles="{
        light: $t('menuInactiveChapterTextWithStylesForLightTheme'),
        dark: $t('menuInactiveChapterTextWithStylesForDarkTheme')
        }[currentTheme]"
        :active-chapter-fill="$theme.variables.activeChapterFill"
        :hidden-chapters="hiddenChapters"
        inactive-chapter-fill="transparent"
        component-name="Menu"
        @open-sitemap="openSitemap"
        @open-references="openReferencesPopup"
    ></wiz-menu>
    </wiz-viewer>
</wiz-root>
</template>

The id and class attributes are required for correct display of the component styles.

Attributes

You can change the wiz-menu component appearance and behavior using the following attributes within the <wiz-menu></wiz-menu> tag:

AttributeDescriptionExample
component-nameComponent label displayed on the Properties tab in eWizard Editor<wiz-menu component-name="Menu"></wiz-menu>
positioningMenu position on a slide. One of:
  • hb: horizontal-bottom
  • ht: horizontal-top
  • vl: vertical-left
  • vr: vertical-right
<wiz-menu positioning="hb"></wiz-menu>
button-paddingsMenu button padding in pixels<wiz-menu :button-paddings="3"></wiz-menu>
home-button-iconHome button icon. The home button redirects to the starting slide<wiz-menu home-button-icon="./media/images/home-button-icon.jpg"></wiz-menu>
show-home-buttonHome button visibility, boolean. Default: true<wiz-menu :show-home-button="false"></wiz-menu>
active-chapter-text-with-stylesStyle of the active chapter text1<wiz-menu :active-chapter-text-with-styles="$t('activetext')"></wiz-menu>
inactive-chapter-text-with-stylesStyle of inactive chapters text1<wiz-menu :inactive-chapter-text-with-styles="$t('wiz_menu_id')"></wiz-menu>
active-chapter-fillBackground color of the active chapter. Accepted values: 6-digit HEX, 8-digit HEX, RGBA<wiz-menu active-chapter-fill="#c95757ff"></wiz-menu>
inactive-chapter-fillBackground color of inactive chapters. Accepted values: 6-digit HEX, 8-digit HEX, RGBA<wiz-menu inactive-chapter-fill="#c95757ff"></wiz-menu>
active-chapter-side-with-borderBorder visibility for active chapter sides:
  • all: all
  • l: left
  • r: right
  • t: top
  • b: bottom
  • lr: left–right
  • tb: top–bottom
  • tl: top–left
  • tr: top–right
  • bl: bottom–left
  • br: bottom–right
<wiz-menu active-chapter-side-with-border="lr"></wiz-menu>
inactive-chapter-side-with-borderBorder visibility for inactive chapter sides:
  • all: all
  • l: left
  • r: right
  • t: top
  • b: bottom
  • lr: left–right
  • tb: top–bottom
  • tl: top–left
  • tr: top–right
  • bl: bottom–left
  • br: bottom–right
<wiz-menu inactive-chapter-side-with-border="lr"></wiz-menu>
active-chapter-border-styleStyle for active chapter borders. One of:
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset
  • none
<wiz-menu active-chapter-border-style="dashed"></wiz-menu>
inactive-chapter-border-styleStyle for inactive chapter borders. One of:
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset
  • none
<wiz-menu inactive-chapter-border-style="dashed"></wiz-menu>
active-chapter-border-widthActive chapter border width in pixels<wiz-menu :active-chapter-border-width="3"></wiz-menu>
inactive-chapter-border-widthInactive chapter border width in pixels<wiz-menu :inactive-chapter-border-width="3"></wiz-menu>
active-chapter-border-colorActive chapter border color. Accepted values: 6-digit HEX, 8-digit HEX, RGBA<wiz-menu active-chapter-border-color="#db6c2aff"></wiz-menu>
inactive-chapter-border-colorInactive chapter border color. Accepted values: 6-digit HEX, 8-digit HEX, RGBA<wiz-menu inactive-chapter-border-color="#db6c2aff"></wiz-menu>
active-arrows-colorActive navigation arrow color. Accepted values: 6-digit HEX, 8-digit HEX, RGBA<wiz-menu active-arrows-color="#348ab2ff"></wiz-menu>
inactive-arrows-colorInactive navigation arrow color. Accepted values: 6-digit HEX, 8-digit HEX, RGBA<wiz-menu inactive-arrows-color="#348ab2ff"></wiz-menu>
show-sitemap-buttonVisibility of the sitemap button, boolean<wiz-menu :show-sitemap-button="false"></wiz-menu>
sitemap-button-iconPath to the sitemap button icon<wiz-menu sitemap-button-icon="./media/images/f6194d90-8f03-11ec-96c2-ea6c057b1b2f.jpg"></wiz-menu>
show-refs-buttonThe References button visibility, boolean (redirects to the pop-up with references used in the e-Detailer)<wiz-menu :show-refs-button="false"></wiz-menu>
refs-button-iconPath to the References button icon<wiz-menu refs-button-icon="./media/images/f6194d90-8f03-11ec-96c2-ea6c057b1b2f.jpg"></wiz-menu>
show-pi-buttonThe PI button visibility (opens an uploaded PDF with the prescription information), boolean<wiz-menu :show-pi-button="true"></wiz-menu>
pi-button-iconPath to the PI button icon<wiz-menu pi-button-icon="./media/images/f6194d90-8f03-11ec-96c2-ea6c057b1b2f.jpg"></wiz-menu>
logo-iconPath to the logo icon<wiz-menu logo-icon="./media/images/f6194d90-8f03-11ec-96c2-ea6c057b1b2f.jpg"></wiz-menu>
hidden-chaptersDefine the IDs of the chapters to be hidden<wiz-menu :hidden-chapters="['home', 'chapter2', 'chapter4']"></wiz-menu>

1As defined in the style attribute of the <span> tag. For example, in the activetext key:

html
<i18n>
{
  "eng": {
    "activetext": "<p style=\"line-height:13px;text-align:center;\"><span style=\"color:#0277BD;font-family:'Open Sans';font-size:13px;\"><b><span style=\"text-transform:uppercase;\">Demo&nbsp;</span></b></span></p>"
  }
}
</i18n>

- `pi-button-pdf`

The path to the PDF opened after you click the **PI** button.

```html
<wiz-menu pi-button-pdf="./media/pdfs/6bb57370-77d0-11ed-89c8-58fd20de9cf4.pdf"></wiz-menu>

Properties


The following properties are available:
PropertyTypeDefault valueDescription
activeArrowsColorstring#546E7AActive chapter navigation arrows color. Inactive chapter navigation arrows color. Input: RGBA or 6- or 8-digit HEX.
activeChapterBorderColorstring#0277bdActive chapter border color. Input: RGBA or 6- or 8-digit HEX
activeChapterBorderStylestringChapterBorderStyle. NONEActive chapter border style
activeChapterBorderWidthnumber1Active chapter border width, px.
activeChapterFillstring#EEEEEEActive chapter background color. Input: RGBA or 6- or 8-digit HEX.
activeChapterSideWithBorderstringChapterSideWithBorder. BOTTOMDefines borders of the active chapter's sides
activeChapterTextWithStylesstring<span style=" color: #0277bd; font-size: 13px; line-height: 13px; font-weight: bold; text-align: center; font-family: 'Open Sans'; text-transform: uppercase;"> Demo</span>Text style of the active chapter
buttonPaddingsnumber0The paddings of the button menu, px
componentNamestringMenuThe text label displayed in eWizard Editor.
hiddenChaptersfunction() => []Chapter names to be hidden in the menu.
homeButtonstring../media/images/home-icon.svgThe Home button icon redirecting to the starting slide.
inactiveArrowsColorstring#546E7AInactive chapter navigation arrows color. Input: RGBA or 6- or 8-digit HEX.
inactiveChapterBorderColorstring#0277bdInactive chapter border color. Input: RGBA or 6- or 8-digit HEX.
inactiveChapterBorderStylestringChapterBorderStyle. NONEInactive chapter border style.
inactiveChapterBorderWidthnumber1Inactive chapter border width, px.
inactiveChapterFillstringtransparentInactive chapter background color. Input: RGBA or 6- or 8-digit HEX.
inactiveChapterSideWithBorderstringChapterSideWithBorder. BOTTOMInactive chapter borders display.
inactiveChapterTextWithStylesstring<span style=" color: #546E7A; font-size: 13px; line-height: 13px; font-weight: bold; text-align: center; font-family: 'Open Sans'; text-transform: uppercase;"> Demo</span>The text style of the inactive chapter.
logoIconstring../media/images /logo.svgThe path to the logo icon.
piButtonIconstring../media/images/pi-icon.svgThe path to the PI button icon.
piButtonPdfstringN/AThe path to a PDF file opened on clicking the PI button.
positioningstringPositioning. HORIZONTAL_BOTTOMPosition of the menu component on a slide.
refsButtonIconstring../media/images/refs-icon.svgThe path to the References button icon.
showHomeButtonbooleantrueThe home button visibility.
showPiButtonbooleantrueThe PI button visibility. Use: opens an uploaded PDF.
showRefsButtonbooleantrueThe References button visibility. The button redirects to the pop-up with references used in the e-Detailer.
showSitemapButtonbooleantrueThe Sitemap button visibility. The button displays the e-Detailer structure.
sitemapButtonIconstring../media/images/sitemap-icon.svgThe path to the Sitemap button icon.