Hello!
I cannot understand how to use modals and toast via javascript.
For example form validation. If email already registered I want to show toast, but how to show it using JavaScript without using:
<p>
<a class="btn waves-button waves-effect" data-toggle="toast" title="Simple toast with some text">Toggle Toast</a>
</p>
I want to:
if(!validaEmail) {
//show toast
// break submit
}