Skip to main content
wiz-button
eWizard Team avatar
Written by eWizard Team
Updated over a year ago

Installation

Run following command in console to install the component:

wiz install @edetailer/wiz-button

import wizButton from 'wiz-button';

Add this link to presentation globally:

Vue.component('wiz-button', wizButton);createApp(Vue, {
...
components: {
...
wizButton
}
});

Add this link directly to slide:

export default {
components: {
wizButton
}
...

Use:

<wiz-button></wiz-button>

Parameters

Property

Type

Default

Description

text

String

"Text"

Text

goToOptions

Object

{}

Slide object for navigator
slides transition

Methods

Wiz-button emits next methods:

• click

Examples

Basic usage

Markup:

You can also use Vue event modifiers for handling click

<wiz-button @click.prevent="handlerMethod"></wiz-button>

Slide script:

export default {
data() {
navigationItem: {
slide: 'slideName',
chapter: 'chapterName',
}
}
methods: {
handlerMethod() {
// handle button click
}
}
}

Using slots

Markup:

Did this answer your question?