@@include('./parts/head.html', { "plugin_fa_icons": true, "plugin_mdi_icons": true, "plugin_ion_icons": true, "plugin_wi_icons": true, "plugin_rickshaw": false, "plugin_nvd3": false, "plugin_flot": false, "plugin_sparkline": false, "plugin_markitup": false, "plugin_ckeditor": false, "plugin_select2": false, "plugin_dropzone": false, "plugin_tagsinput": false, "plugin_clockpicker": false, "plugin_pikaday": false, "plugin_spectrum": false, "plugin_inputmask": false, "plugin_parsley": false, "plugin_gmaps": false, "plugin_jvectormap": false, "plugin_datatables": false, "plugin_fullcalendar": false, "plugin_simpleweather": false, "plugin_prettify": true })
@@include('./parts/top-navbar.html') @@include('./parts/sidebar.html', { "page": "ui-toasts", "classes": "yay-shrink yay-hide-to-small yay-gestures" })// Materialize.toast(message, displayLength, className, completeCallback); Materialize.toast('I am a toast!', 4000) // 4000 is the duration of the toastOne way to add this into your application is to add this as an onclick event to a button
<a class="btn" onclick="Materialize.toast('I am a toast', 4000)">Toast!</a>
<a class="waves-effect waves-light btn" onclick="Materialize.toast('<span>Item Deleted</span><a class="btn-flat yellow-text" href="#!"">Undo<a>', 5000)">Toast!</a>
<a class="btn" onclick="Materialize.toast('I am a toast', 4000,'',function(){alert('Your toast was dismissed')})">Toast!</a>
Materialize.toast('I am a toast!', 3000, 'rounded') // 'rounded' is the class I'm applying to the toast