Skip to content

markcell/jquery-alertiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery-Alertiny v1.0.0

Tiny plugin to show alert from Bootstrap.

Options

The following options are supported:

  • extraClass: add extra classes to alert div (default = '')
  • closeButton: create close button (default = true)
  • fadeEffect: add fade effect classes (default = true)

Examples

// Example #1
$('.alert-container').Alertiny(
  'success', 
  'Example only with alert type and alert message.'
);
// Example #2
$('.alert-container').Alertiny(
  'info', 
  'Example with extra classes.', 
  {extraClass: 'example'}
);
// Example #3
$('.alert-container').Alertiny(
  'warning', 
  'Example without close button.', 
  {closeButton: false}
);
// Example #4
$('.alert-container').Alertiny(
  'danger', 
  'Example without fade effect.', 
  {fadeEffect: false}
);

License

Code released under the MIT license.

About

Create and show alert components from Bootstrap.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published