Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Latest commit

 

History

History
45 lines (31 loc) · 638 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 638 Bytes

vue-sui-toast

Vue 2.x port of sui mobile toast component

Install

npm install vue-sui-toast

Usage

import Vue from 'vue';
import vueSuiToast from 'vue-sui-toast';

Vue.use(vueSuiToast);

new Vue({
    el: '#container',
    methods: {
        toast(){
            this.$toast('success');
        }
    }
});

API

vm.$toast(msg[, duration, extraClass]);
  • msg, the toast message, required
  • duration, toast duration, default to 2000ms
  • extraClass, extrasClass added to toast, default to empty

Thanks To

License

MIT