1.0.5 • Published 2 years ago
vicdun-notification v1.0.5
vicdun-notification
Hi everyone, I'm Fahrettin Rıza Ergin.
I'm a software developer. I'm a student of Computer Programing at University of Atatürk.
I have prepared a notification package for you with my little knowledge of JavaScript.
I wish you to use this package in good days.
Download the package
npm i vicdun-notification --save
Or
yarn add vicdun-notification
Package Usage
<template>
<bodyRender />
</template>
<script>
import { bodyRender } from 'vicdun-notification'
export default {
components: {
bodyRender
}
}
</script>
Or
<template></template>
<script>
import { bodyRender } from 'vicdun-notification'
export default {
mounted () {
bodyRender()
}
}
</script>
Use of editing notification content within other pages
// How to use to change notification content
import { notification } from 'vicdun-notification'
notification({
class: 'mb-4',
message: 'Hi guys',
position: 'right-top', // default: right-top, other positions: left-top, center-top, right-top, center, left-bottom, center-bottom, right-bottom
type: 'default', // default, success, danger, warning, info
style: 'margin-bottom: 1rem; margin-top: 1rem;',
timeout: 3.5 // Default seconds: 3, you can write your own desired seconds. Example: 4.5
})
License
MIT, see LICENSE.md for details.