Skip to content

cristoferrao/materialize-bootbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

materialize-bootbox v1.0.0

Bootbox like plugins for Materialize 1.0.

Instalation

<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">

<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>

<!-- Materialize Bootbox -->
<script src="static/js/mzbox.min.js"></script>

Usage

mzbox.alert(message);
mzbox.alert(message, title);
mzbox.alert(message, callback);
mzbox.alert(message, title, callback);
mzbox.alert(options);

mzbox.confirm(message);
mzbox.confirm(message, title);
mzbox.confirm(message, callback);
mzbox.confirm(message, title, callback);
mzbox.confirm(options);

mzbox.prompt(message);
mzbox.prompt(message, title);
mzbox.prompt(message, callback);
mzbox.prompt(message, title, value);
mzbox.prompt(message, title, callback);
mzbox.prompt(message, title, value, callback);
mzbox.prompt(options);

mzbox.dialog(options);

TODO

  1. Prompt for:
    1. Chips
    2. Pickers

License

It's MIT.

The plugins require materialize to be alive. Please refer to materialize license.

For the docs, please also see prism license.

Changelog

0.0.2

  1. Add buttons options default

1.0.0

  1. Fix bug on select element of prompt
  2. HTML5 range is now rendered properly
  3. Adding prompt input type switch
  4. Bump support to Materialize 1.0.0
  5. Remove jQuery dev

About

Bootbox like plugins for Materialize 1.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%