Configuration Object

Basic configuration of the Flash Message component

import Vue from 'vue';
import FlashMessage from '@smartweb/vue-flash-message';
Vue.use(FlashMessage, {
    name: String,
    tag: String,
    time: Number,
    strategy: String
});

Property

Type

Default

Description

name

String

'flashMessage'

It is a name of the component and alias for the EventBus global property.

tag

String

'FlashMessage'

Custom tag for the component to use in your application.

time

Number

8000

Duration (in ms) of the message display (can be customized during message call).

strategy

String

'single'

You can pass 'single' or 'multiple' to choose the default strategy. It can be changed in process.

Last updated