📜  adminlte 3 toasts - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:04.230000             🧑  作者: Mango

代码示例1
// This code has been barely documented. I sourced this from 
// the AdminLTE docs and by digging through the files
// https://adminlte.io/docs/3.0/javascript/toasts.html
// You need jQuery with AdminLTE for this code to work
$(document).Toasts('create', {
            icon: 'fas fa-exclamation-triangle',
            class: 'bg-danger m-1',
            autohide: true,
            delay: 5000,
            title: 'An error has occured',
            body: 'Something went wrong'
        })