Alerts
.Alert();
jsAlert.Alert("Title");
jsAlert.Alert("Title", {settings});
.Error();
jsAlert.Error("Title");
jsAlert.Error("Title", {settings});
.Success();
jsAlert.Success("Title");
jsAlert.Success("Title", {settings});
.Warning();
jsAlert.Warning("Title");
jsAlert.Warning("Title", {settings});
Settings
Default Settings
settings: {
id: null,
type: 'default',
dismiss: true,
callback: false,
time: 2,
animate: true,
style: {
color: "",
bgcolor: "",
  ; border: "",
width: "",
paddingtop: "",
paddingleft: "",
paddingright: "",
paddingbottom: "",
margintop: "",
marginleft: "",
marginright: "",
marginbottom: "",
zindex: "",
},
},
settings{id:string}
Automatically generated and should not be set manually. Generated through createAlert();
settings{type:string}
Automatically set and should not be set manually.
settings{dismiss:boolean}
Display a dismiss button, if false, alert destroys after {time:number} seconds.
settings{callback:string}
Function to call after dismissing the alert.
settings{time:number}
Time in seconds to destroy the alert.
settings{animate:boolean}
Adds the drop-down animation and fade out animation.
settings{style:{Object}}
Overrides the default style settings.
Style
style: {
color: "",
bgcolor: "",
border: "",
width: "",
paddingtop: "",
paddingleft: "",
paddingright: "",
paddingbottom: "",
margintop: "",
marginleft: "",
marginright: "",
marginbottom: "",
zindex: "",
},
style{color:string}
The text color.
style{bgcolor:string}
The background color.
style{border:string}
The border style.
style{width:string}
The width of the notification, default is 100%.
style{paddingtop:string}
The top padding, default is 10px.
style{paddingleft:string}
The left padding, default is 0px.
style{paddingright:string}
The right padding, default is 0px.
style{paddingbottom:string}
The bottom padding, default is 10px.
style{margintop:string}
The top margin, default is 0px.
style{marginleft:string}
The left margin, default is 0px.
style{marginright:string}
The right margin, default is 0px.
style{marginbottom:string}
The bottom margin, default is 0px.
style{zindex:string}
The z-index, default is 0.