Skip to content

Using Bootstrap modal in multiple places on the system.

License

Notifications You must be signed in to change notification settings

yoannes/bootstrap-yoUp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-modal

Script for who needs to use modal on multple places and want to save some code lines.
For this script to work you need to use jQuery and Bootstrap V4.
Use it with your own risk.

How to use

On document load, script will add to body a div with the modal.

Set language

yoUp.setLocale("en_us/pt_br")

Show modal

yoUp.open({
    width: Width of the modal.,
    title: "Title, if not present, header will be hidden",
    content: "content of the modal",
    footer: "alert/confirm/none",
    callback: "function when pressed confirm button",
    onLoad: "function before modal is loaded",
    onLoaded: "function after modal is loaded",
    headerColor: "hex/rgb",
    contentColor: "hex/rgb",
    footerColor: "hex/rgb"
});

Hide modal

yoUp.close();

About

Using Bootstrap modal in multiple places on the system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published