![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
vue-easy-toast
Advanced tools
Readme
A toast plugin for vue/vue2.
Issue/PR is welcomed, I'll response as soon as possible.
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 background 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 | Built-in transitions: fade , slide-[up/down/left/right] . See also Transitions |
Besides minimum styling, vue-easy-toast try not to be opinionated about the appearance. It is a simply a div
(class="et-wrapper") wrapped a span
(class="et-content"). Apply your css freely with them or with your own classes passed in as className
.
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 851 weekly downloads. As such, vue-easy-toast popularity was classified as not 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.