let toast = M.toast({"html": `<span>Query has been sent!</span><button class="btn-flat toast-action red-text" data-action="close"><i class="material-icons">close</i></button>`});
toast("Query has been sent!")
let toastActionElement = toast.el.querySelector(".toast-action[data-action='close']");