Skip to main content
Module

x/capsid/src/decorators/index.ts

💊 Declarative DOM programming library. Lightweight (1.79 kb).
Latest
import * as capsid from "https://deno.land/x/capsid@v1.8.2/src/decorators/index.ts";

Variables

The decorator for class component registration.

@emits(event) decorator

is decorator adds the class names to the given element when it's mounted.

is decorator adds the class names to the given element when it's mounted.

The decorator for registering event listener info to the method.

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.

Wires the element of the given selector to the property.