From 01bbbf9a29f48cece40d6e728e4b30e30a66a63a Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 25 Nov 2021 17:54:28 +0000 Subject: [PATCH] floating_alert: agregar ejemplo de uso --- _packs/controllers/floating_alert_controller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_packs/controllers/floating_alert_controller.js b/_packs/controllers/floating_alert_controller.js index dd6ffed..c00ee8c 100644 --- a/_packs/controllers/floating_alert_controller.js +++ b/_packs/controllers/floating_alert_controller.js @@ -1,5 +1,9 @@ import { Controller } from "stimulus"; +// Ejemplo de uso: +// window.dispatchEvent( +// new CustomEvent("toast", { detail: { content: "¡Hola, usuarix!" } }) +// ); export default class extends Controller { static targets = ["content"];