Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

adminlte 3 toasts jquery

// 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'
		})
 
PREVIOUS NEXT
Tagged: #adminlte #toasts #jquery
ADD COMMENT
Topic
Name
6+3 =