We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92d73a8 + e38e9ef commit ed7ba6bCopy full SHA for ed7ba6b
src/main.ts
@@ -4,6 +4,8 @@ import "./style.scss";
4
import "prismjs/themes/prism.min.css";
5
import { config } from "../config.materialize";
6
7
+globalThis.M = M
8
+
9
document.addEventListener("DOMContentLoaded", function() {
10
function rgb2hex(rgb: string) {
11
if (/^#[0-9A-F]{6}$/i.test(rgb)) return rgb;
toasts.html
@@ -20,7 +20,7 @@
20
<button
21
type="button"
22
class="waves-effect waves-light btn"
23
- onclick="M.toast({text: 'I am a toast'})"
+ onclick="M.toast({text: 'I am a toast', classes: 'primary'})"
24
>
25
Toast!
26
</button>
0 commit comments