jQuery Plugin To Create Android Style Toasts - Toastx
| File Size: | 77.8 KB |
|---|---|
| Views Total: | 596 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
Toastx is a very simple and CSS-less jQuery plugin used to show Android-style brief messages for your web application.
How to use it:
1. The jQuery Toastx plugin must be loaded after jQuery JavaScript library.
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="js/jquery.toastx.js"></script>
2. Display a basic toast message in the middle of your screen.
$.toastx('Message here');
3. Create a customizable toast message using the $.toast() method.
$.toast({
// parent container
'appendToCtxSel': 'body',
// message to display
'message': 'Message...',
// duration
'durationTime':4000,
// left position
'left':null,
// top position
'top':null,
}).show();
This awesome jQuery plugin is developed by zhouzhian. For more Advanced Usages, please check the demo page or visit the official website.











