All Projects → AlexKvazos → VanillaToasts

AlexKvazos / VanillaToasts

Licence: other
Agnostic Javascript Library for Website Notifications

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to VanillaToasts

tall-toasts
A Toast notification library for the Laravel TALL stack. You can push notifications from the backend or frontend to render customizable toasts with almost zero footprint on the published CSS/JS 🔥🚀
Stars: ✭ 296 (+232.58%)
Mutual labels:  notifications, toasts
php-flasher
🔔 Flasher is a powerful and flexible flash notifications system for PHP, Laravel, Symfony
Stars: ✭ 68 (-23.6%)
Mutual labels:  notifications
better-discord-notifications
Scripts that send better sonarr/radarr notifications to discord
Stars: ✭ 13 (-85.39%)
Mutual labels:  notifications
symfony5-jwt-restapi
API for Meeting app development
Stars: ✭ 21 (-76.4%)
Mutual labels:  notifications
slack-texts
SMS notifications for Slack groups
Stars: ✭ 19 (-78.65%)
Mutual labels:  notifications
ex unit notifier
Desktop notifications for ExUnit
Stars: ✭ 111 (+24.72%)
Mutual labels:  notifications
devhub
TweetDeck for GitHub - Filter Issues, Activities & Notifications - Web, Mobile & Desktop with 99% code sharing between them
Stars: ✭ 8,064 (+8960.67%)
Mutual labels:  notifications
Utlyz-CLI
Let's you to access your FB account from the command line and returns various things number of unread notifications, messages or friend requests you have.
Stars: ✭ 30 (-66.29%)
Mutual labels:  notifications
reports
UI for created and download reports in Laravel
Stars: ✭ 13 (-85.39%)
Mutual labels:  notifications
MongoosePush
MongoosePush is a simple Elixir RESTful service allowing to send push notification via FCM and/or APNS.
Stars: ✭ 101 (+13.48%)
Mutual labels:  notifications
debounced-notifications
Basecamp style notification debouncing / throttling for Laravel notifications.
Stars: ✭ 30 (-66.29%)
Mutual labels:  notifications
mcMMOAction
Prints some mcMMO message into the action bar
Stars: ✭ 17 (-80.9%)
Mutual labels:  notifications
mw-discord
📝 MediaWiki extension that sends notifications to Discord, used on https://runescape.wiki.
Stars: ✭ 16 (-82.02%)
Mutual labels:  notifications
RSSnotifier
Node RSS reader telegram bot. Provides notification on queries-matching elements and supports multiple users.
Stars: ✭ 15 (-83.15%)
Mutual labels:  notifications
Alertism
A Good Replacement For Default JavaScript Alerts Which Also Makes Good Pop-Ups
Stars: ✭ 19 (-78.65%)
Mutual labels:  toasts
NotificationExplorer
See what notifications exist at runtime
Stars: ✭ 43 (-51.69%)
Mutual labels:  notifications
twilio-voice-notification-app
Reference app built in ReactJS that demonstrates how to leverage Twilio Programmable Voice and Twilio SDKs to create a voice notification system.
Stars: ✭ 21 (-76.4%)
Mutual labels:  notifications
AndroidProjects
个人总结归纳Android知识点。1.Data Binding框架MVVM;2. BaseView;3.CollapseView;4.Notification;5.MultiChannelBuild;6.SwipeBack;7.CustomTabs;8.HandlerCourse;9.VolleyStudy;10.OkHttpStudy;11.PermissionManage;12.InterView;13.KotlinLearning
Stars: ✭ 32 (-64.04%)
Mutual labels:  notifications
node-backend-template
A template for NodeJS backend projects
Stars: ✭ 19 (-78.65%)
Mutual labels:  notifications
apprise-api
A lightweight REST framework that wraps the Apprise Notification Library
Stars: ✭ 147 (+65.17%)
Mutual labels:  notifications

VanillaToasts

Create toasts & notifications on your website with ease. This library is extremely lightweight and depends on no other library. Simply load the script and css to your page, and use the simple API to start launching toasts on your page.

Check it out: http://alexkvazos.github.io/VanillaToasts/

Installing

$ npm install vanillatoasts

var VanillaToasts = require('vanillatoasts');

Don't forget to include the CSS file!

 <link rel="stylesheet" href="https://github.com/path/to/vanillatoasts/vanillatoasts.css">

Usage


// Create a toast
let toast = VanillaToasts.create({
  title: 'Welcome to my site',
  text: 'This toast will hide after 5000ms or when you click it',
  type: 'warning', // success, info, warning, error   / optional parameter
  icon: '/img/alert-icon.jpg', // optional parameter
  timeout: 5000, // hide after 5000ms, // optional parameter
  callback: function() { ... } // executed when toast is clicked / optional parameter
});

// Hides the toast instantly
toast.hide()

// Timeout a toast at a later time
VanillaToasts.setTimeout(toast.id, 1000);

Positioning the toast

To set a different position for the toast, use the positionClass property on the options of VanillaToast.

// Create a toast
let toast = VanillaToasts.create({
  title: 'Welcome to my site',
  text: 'This toast will hide after 5000ms or when you click it',
  positionClass: 'bottomLeft'
});

You can use any of the following values for the positionClass property:

  • topRight
  • topLeft
  • topCenter
  • bottomRight
  • bottomLeft
  • bottomCenter
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].