Skip to main content
Module

x/capsid/mod.ts>pub

💊 Declarative DOM programming library. Lightweight (1.79 kb).
Latest
variable pub
Re-export
import { pub } from "https://deno.land/x/capsid@v1.8.2/mod.ts";

Publishes the given event to the elements which has sub:${event} class. For example @pub('foo') publishes the foo event to the elements which have sub:foo class.

type

(event: string, targetSelector?: string) => unknown