floating_alert: agregar ejemplo de uso
This commit is contained in:
parent
588c608fa2
commit
01bbbf9a29
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
import { Controller } from "stimulus";
|
import { Controller } from "stimulus";
|
||||||
|
|
||||||
|
// Ejemplo de uso:
|
||||||
|
// window.dispatchEvent(
|
||||||
|
// new CustomEvent("toast", { detail: { content: "¡Hola, usuarix!" } })
|
||||||
|
// );
|
||||||
export default class extends Controller {
|
export default class extends Controller {
|
||||||
static targets = ["content"];
|
static targets = ["content"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue