All Projects → valnub → Toast-for-Framework7

valnub / Toast-for-Framework7

Licence: other
A toast component plugin for iOS Framework7

Programming Languages

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

Projects that are alternatives of or similar to Toast-for-Framework7

HHChaosToolkit
A set of MVVM tookit class libraries for uwp platform.
Stars: ✭ 27 (-34.15%)
Mutual labels:  toast
ComposableSweetToast
Jetpack Compose, Custom Toast, Solid Principles, Kotlin
Stars: ✭ 60 (+46.34%)
Mutual labels:  toast
neodigm55
An eclectic low-code vanilla JavaScript UX micro-library for those that defiantly think for themselves.
Stars: ✭ 14 (-65.85%)
Mutual labels:  toast
EasyToast
An Android library that takes the standard Android Toast to the next level with built-in icons from font-awesome and many styling options that gives your app and user experience an extra awesome feeling!
Stars: ✭ 18 (-56.1%)
Mutual labels:  toast
Sentinel
👀 Native notifications for League of Legends
Stars: ✭ 38 (-7.32%)
Mutual labels:  toast
SteamAchievementNotifier
Steam Achievement Notifier is an Electron application that shows a customisable notification when you unlock any Steam Achievement! It uses the Steam Web API to track achievement stats in real time, and displays an achievement summary within the notification.
Stars: ✭ 77 (+87.8%)
Mutual labels:  toast
toast2.js
A JavaScript toast component.
Stars: ✭ 15 (-63.41%)
Mutual labels:  toast
ToastUtils
Android Toast,即便关闭了通知权限也会正常显示 (暂停维护)
Stars: ✭ 33 (-19.51%)
Mutual labels:  toast
phonegap-template-vue-f7-split-panel
A Split View PhoneGap template using Vue.js and Framework7 that degrades to a Panel View on smaller devices
Stars: ✭ 17 (-58.54%)
Mutual labels:  framework7
newshunt
A Hybrid Social Mobile App Developed using MeteorJs & Framework7
Stars: ✭ 21 (-48.78%)
Mutual labels:  framework7
NotificationToast
Google toast the Apple way !
Stars: ✭ 132 (+221.95%)
Mutual labels:  toast
SimpleToast
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
Stars: ✭ 131 (+219.51%)
Mutual labels:  toast
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 (+621.95%)
Mutual labels:  toast
framework7-webpack-demo
🍄 A demo project for using Framework7 with Webpack3.0 via Babel!
Stars: ✭ 79 (+92.68%)
Mutual labels:  framework7
denbun
Adjust showing frequency of Android app messages, and to be more user friendly 🐦
Stars: ✭ 17 (-58.54%)
Mutual labels:  toast
YYBottomSheet
Simple and Clear BottomSheet
Stars: ✭ 45 (+9.76%)
Mutual labels:  toast
framework7-template-single-view
Deprecated! Framework7 single view starter app template
Stars: ✭ 34 (-17.07%)
Mutual labels:  framework7
commons
flutter commons package
Stars: ✭ 42 (+2.44%)
Mutual labels:  toast
smart-show
Toast # Snackbar # Dialog
Stars: ✭ 500 (+1119.51%)
Mutual labels:  toast
DesktopToastANE
Adobe Air Native Extension for displaying adaptive and interactive toast notifications in Windows 8, 10 and OSX
Stars: ✭ 28 (-31.71%)
Mutual labels:  toast

Toast for Framework7

A plugin for Framwork7 to show little black toasts iOS-style

F7 Compatibility

  • V1: Yes
  • V2: No (Toast already included in F7 v2 core components)

Screenshot

Confirmbox screenshot

Video

https://www.youtube.com/watch?v=1qCRmpyQCuw&feature=youtu.be

Live demo

http://www.timo-ernst.net/misc/toastdemo/

How to use

1. Add the script to your project (after Framework7 script!) and also add CSS reference:

<link rel="stylesheet" href="toast.css">
<script src="toast.js"></script>

2. Create a new toast

You can create a new toast with a icon:

var app = new Framework7();
var options = {};
var toast = app.toast('Marked star', '<div>☆</div>', options);

As first parameter you set the message which gets displayed at the bottom of the toast. As 2nd parameter you have to set the icon. You can use free HTML here so set what ever you want (ASCii, Font-Icon, Images, SVG...). Third is reserved for options.

If you just want to show a message, let 2nd parameter empty:

var app = new Framework7();
var options = {};
var toast = app.toast('A long long message', '', options);

3. Now you can show or hide the box:

// show
toast.show();

// hide
toast.hide();

Note: In older versions of this plugin these methods were toast.show(true) and toast.show(false) but these were replaced by toast.show() and toast.hide() which is a little more convenient. You might have to change this in your code though if you upgrade from an older version.

You can also change what message is displayed after initialization:

toast.show("message");

4. Options & Callbacks

You can set the following options:

var app = new Framework7();
var options = {
  // Callback gets called when toast is hidden
  onHide: function () {
    console.log('hidden');
  },
  duration: 2000 // Hide toast after 2 seconds
};
var toast = app.toast('Marked star', '<div>☆</div>', options);

You're done :D

Made with <3 by www.timo-ernst.net

License

MIT - Do what ever you want ;-)

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].