',
'Family Trip',
{
closeButton: true,
timeOut: 0,
extendedTimeOut: 0,
tapToDismiss: false,
rtl: isRtl
}
);
}
if (clearToastObj.find('.clear').length) {
clearToastObj.delegate('.clear', 'click', function () {
toastr.clear(clearToastObj, { force: true });
clearToastObj = undefined;
});
}
});
// Position Top Left
positionTopLeft.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Top Left!', {
positionClass: 'toast-top-left',
rtl: isRtl
});
});
// Position Top Center
positionTopCenter.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Top Center!', {
positionClass: 'toast-top-center',
rtl: isRtl
});
});
// Position Top Right
positionTopRight.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Top Right!', {
positionClass: 'toast-top-right',
rtl: isRtl
});
});
// Position Top Full Width
positionTopFull.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Top Full Width!', {
positionClass: 'toast-top-full-width',
rtl: isRtl
});
});
// Position Bottom Left
positionBottomLeft.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Bottom Left!', {
positionClass: 'toast-bottom-left',
rtl: isRtl
});
});
// Position Bottom Center
positionBottomCenter.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Bottom Center!', {
positionClass: 'toast-bottom-center',
rtl: isRtl
});
});
// Position Bottom Right
positionBottomRight.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Bottom Right!', {
positionClass: 'toast-bottom-right',
rtl: isRtl
});
});
// Position Bottom Full Width
positionBottomFull.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Bottom Full Width!', {
positionClass: 'toast-bottom-full-width',
rtl: isRtl
});
});
// Fast Duration
fastDuration.on('click', function () {
toastr['success']('Have fun storming the castle!', 'Fast Duration', { showDuration: 500, rtl: isRtl });
});
// Slow Duration
slowDuration.on('click', function () {
toastr['warning']('Have fun storming the castle!', 'Slow Duration', { hideDuration: 3000, rtl: isRtl });
});
// Timeout
toastrTimeout.on('click', function () {
toastr['error']('I do not think that word means what you think it means.', 'Timeout!', {
timeOut: 5000,
rtl: isRtl
});
});
// Sticky
toastrSticky.on('click', function () {
toastr['info']('I do not think that word means what you think it means.', 'Sticky!', { timeOut: 0, rtl: isRtl });
});
// Slide Down / Slide Up
slideToast.on('click', function () {
toastr['success']('I do not think that word means what you think it means.', 'Slide Down / Slide Up!', {
showMethod: 'slideDown',
hideMethod: 'slideUp',
timeOut: 2000,
rtl: isRtl
});
});
// Fade In / Fade Out
fadeToast.on('click', function () {
toastr['success']('I do not think that word means what you think it means.', 'Slide Down / Slide Up!', {
showMethod: 'fadeIn',
hideMethod: 'fadeOut',
timeOut: 2000,
rtl: isRtl
});
});
});