0.1.8 • Published 4 years ago

vue-dust-notify v0.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

vue-dust-notify

Vue notifications for Dust Games project.

Install

npm install vue-dust-notify

Usage

import Vue from "vue";

import Notify from "vue-dust-notify";
Vue.use(Notify);

// import css
import "vue-dust-notify/dist/vue-dust-notify.css";

// default message without options
this.$notify.default("Message!");
// success message with title
this.$notify.success("Message!", { title: "Title" });
// warning message with overridden message
this.$notify.warning("Message!", { message: "Another mes" });
// error message without options
this.$notify.error("Message!");
// custom message with options (no first parameter in custom)
this.$notify.show({ type: "default", title: "Tit", message: "Mes" });

Options

In this.$notify. + success/warning/error/default you should write message as first parameter and object with this options as second parameter. In this.$notify.show you should write object with this options as fisrt (and last) parameter.

AttributeTypeDefaultDescription
messageString-Message (required)
titleString-Title
typeStringsuccessOne of success, error, default
timeoutNumber3000The number of milliseconds after which the notice closes
0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago