Skip to content

D0Gmatist/ax5ui-toast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axisj-contributed

ax5ui-toast

Dependencies

Install by bower

bower install ax5ui-toast

bower is web front-end package manager. using the bower, when you install the plug-in is installed to resolve the plug-in dependencies under the bower_components folder. (You can change the folder location. .bowerrc )

It is recommended that you install by using the bower. If you've never used a bower is, you will be able to be used for http://bower.io/#install-bower.

Install by npm

If you do not use the bower, it can be downloaded by using the npm as second best. In npm, so pile on the package manager for the front end, you need to solve the problem of plug-in dependencies.

npm install jquery
npm install ax5core
npm install ax5ui-toast

After you download the file in npm install, you will need to copy to the location where you want to use as a resource for the project. If the inconvenience in the process that you want to copy the file and can be easily copied by using a gulp or grunt.

Download code

Insert the "ax5toast" in the HTML HEAD.

Location of the folder can be determined freely in your project. But be careful not to accidentally caused exactly the path.

<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/ax5ui/ax5ui-toast/master/dist/ax5toast.css" />
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5ui-toast/master/dist/ax5toast.min.js"></script>

USE CDN

https://cdn.rawgit.com/ax5ui/ax5ui-toast/master/dist/ax5toast.css
https://cdn.rawgit.com/ax5ui/ax5ui-toast/master/dist/ax5toast.js
https://cdn.rawgit.com/ax5ui/ax5ui-toast/master/dist/ax5toast.min.js

Basic Usages

var myToast = new ax5.ui.toast({
    icon: '<i class="fa fa-bug"></i>',
    containerPosition: "bottom-right",
    closeIcon: '<i class="fa fa-times"></i>'
});

myToast.push('Toast message');

Preview

If you have any questions, please refer to the following gitHub

About

[ReadOnly] Bootstrap jQuery plugin - toast - http://ax5.io/ax5ui-toast

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.9%
  • CSS 22.1%
  • HTML 10.4%
  • Shell 0.6%