Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
vue-easy-toast
Advanced tools
A toast plugin for vue.
This is a beta version! Not yet tested on Vue 2.0.
npm install vue-easy-toast --save
// before start
import Toast from 'vue-easy-toast'
Vue.use(Toast)
// in your code
Vue.toast('Can I have everybody's attention?')
// or
$vm.$toast('Let me give a toast to you all.')
toast
or $toast
takes 2 parameter: (message, [options])
Parameter | Type | Default | Description |
---|---|---|---|
id | string | easy-toast-default | Unique identifier globally. Use this to create multiple toasts with different setups. |
parent | string | body | Selector of the container |
className | string , array | Self-defined class names to pass through. There are 3 pre-defined classes: et-info , et-warn ,et-alert , to toast with different backgroud color | |
duration | number | 5000 | The duration one toast will last, in milliseconds |
mode | string | override | override or queue . If override , the last toast will forcibly flush previous toasts, otherwise it is queued after others |
transition | string | fade | Same as vue Transitions |
Vue.toast('Hi, there!', {
id: 'my-toast',
parent: '#toast-container',
className: ['my-toast', 'toast-warning'],
duration: 3000,
mode: 'queue',
transition: 'my-transition'
})
MIT
FAQs
A toast plugin for vue/vue2
The npm package vue-easy-toast receives a total of 1,530 weekly downloads. As such, vue-easy-toast popularity was classified as popular.
We found that vue-easy-toast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.