We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec38f6 commit 6cabcfcCopy full SHA for 6cabcfc
core/src/main/scala/japgolly/scalajs/react/Callback.scala
@@ -83,6 +83,12 @@ object Callback {
83
def assert(test: Boolean, message: String, optionalParams: js.Any*): Callback =
84
Callback(console.assert(test, message, optionalParams: _*))
85
86
+ /**
87
+ * Convenience for calling `dom.alert`.
88
+ */
89
+ def alert(message: String): Callback =
90
+ Callback(org.scalajs.dom.alert(message))
91
+
92
/**
93
* Serves as a temporary placeholder for a callback until you supply a real implementation.
94
*
0 commit comments