MaterialComponents: flash
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 14 May 2021 16:08:35 +0000 (18:08 +0200)
committerSven Schöling <s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000 (15:51 +0200)
js/kivi.Materialize.js

index 006f8ac..3262ffa 100644 (file)
@@ -66,6 +66,10 @@ namespace("kivi.Materialize", function(ns) {
     };
   };
 
+  ns.flash = function(text) {
+    M.toast({html: text});
+  };
+
   ns.reinit_widgets = function() {
     $('.sidenav').sidenav();
     $('select').formSelect();