### Bootstrap Toasts JS

Code

$('#example1').addToast({content: 'Toast content', title: 'Toast title'});

## Auto hide

Code

$('#example2').addToast({autoHide: true, content: 'AutoHide Toast -> default displayTime', title: 'AutoHide Toast'});
$('#example2').addToast({autoHide: true, content: 'AutoHide Toast -> 5000 displayTime', displayTime: 5000, title: 'AutoHide Toast'});

## Not closable

Code

$('#example3').addToast({closable: false, content: 'Toast content', title: 'Toast title'});

## Toasts types

Code

$('#example4').addToast({content: 'Toast content', title: 'Toast - primary', type: 'primary'});
$('#example4').addToast({content: 'Toast content', title: 'Toast - secondary', type: 'secondary'});
$('#example4').addToast({content: 'Toast content', title: 'Toast - success', type: 'success'});
$('#example4').addToast({content: 'Toast content', title: 'Toast - danger', type: 'danger'});
$('#example4').addToast({content: 'Toast content', title: 'Toast - warning', type: 'warning'});
$('#example4').addToast({content: 'Toast content', title: 'Toast - info', type: 'info'});
$('#example4').addToast({content: 'Toast content', title: 'Toast - light', type: 'light'});
$('#example4').addToast({content: 'Toast content', title: 'Toast - dark', type: 'dark'});

## Language support

Code

$('#example5').addToast({content: 'Toast content', lang: 'cz', title: 'Language support'});

## Icons

Code

$('#example6').addToast({content: 'Toast content', iconClass: 'fas fa-globe-europe', title: 'Icons'});
$('#example6').addToast({content: 'Toast content', iconImgSrc: 'world-icon.png', title: 'Icons'});

## Bootstrap .toast()

Code

let toast = $('#example7').addToast({content: 'Toast content', show: false, title: 'Toast title'});
toast.toast('show');