alertifyjs/
├── css/
│ ├── alertify.css
│ ├── alertify.min.css
│ ├── alertify.rtl.css
│ ├── alertify.rtl.min.css
│ └── themes/
│ ├── bootstrap.css
│ ├── bootstrap.min.css
│ ├── bootstrap.rtl.css
│ ├── bootstrap.rtl.min.css
│ ├── default.css
│ ├── default.min.css
│ ├── default.rtl.css
│ ├── default.rtl.min.css
│ ├── semantic.css
│ ├── semantic.min.css
│ ├── semantic.rtl.css
│ └── semantic.min.rtl.css
├── alertify.js
└── alertify.min.js
alertifyjs/
│
├── build/ # <= build output
│ └── css/
│ └── themes/
│
│
├── docpad/ # <= documentation server
│ ├── data/
│ ├── documents/
│ ├── files/
│ ├── layouts/
│ └── partials/
│
│
│
└── src # <= AlertifyJS source files
├── js/
│ └── dialog/
└── less/
└── themes/
PM> Install-Package AlertifyJS
npm install alertifyjs --save
<!-- include the script -->
<script src="{PATH}/alertify.min.js"></script>
<!-- include the style -->
<link rel="stylesheet" href="{PATH}/alertify.min.css" />
<!-- include a theme -->
<link rel="stylesheet" href="{PATH}/themes/default.min.css" />
The following are the global defaults used by AlertifyJS, override with your own prior to components initialization.
alertify.defaults = {
// dialogs defaults
autoReset:true,
basic:false,
closable:true,
closableByDimmer:true,
frameless:false,
maintainFocus:true, // <== global default not per instance, applies to all dialogs
maximizable:true,
modal:true,
movable:true,
moveBounded:false,
overflow:true,
padding: true,
pinnable:true,
pinned:true,
preventBodyShift:false, // <== global default not per instance, applies to all dialogs
resizable:true,
startMaximized:false,
transition:'pulse',
// notifier defaults
notifier:{
// auto-dismiss wait time (in seconds)
delay:5,
// default position
position:'bottom-right'
},
// language resources
glossary:{
// dialogs default title
title:'AlertifyJS',
// ok button text
ok: 'OK',
// cancel button text
cancel: 'Cancel'
},
// theme settings
theme:{
// class name attached to prompt dialog input textbox.
input:'ajs-input',
// class name attached to ok button
ok:'ajs-ok',
// class name attached to cancel button
cancel:'ajs-cancel'
}
};